test/testintersections.c
changeset 3685 64ce267332c6
parent 3596 f638ded38b8a
child 4465 3e69e077cb95
     1.1 --- a/test/testintersections.c	Thu Jan 21 05:49:41 2010 +0000
     1.2 +++ b/test/testintersections.c	Thu Jan 21 06:21:52 2010 +0000
     1.3 @@ -20,7 +20,7 @@
     1.4  static SDL_BlendMode blendMode = SDL_BLENDMODE_NONE;
     1.5  
     1.6  void
     1.7 -DrawPoints(SDL_WindowID window)
     1.8 +DrawPoints(SDL_Window * window)
     1.9  {
    1.10      int i;
    1.11      int x, y;
    1.12 @@ -86,7 +86,7 @@
    1.13  
    1.14  
    1.15  void
    1.16 -DrawLines(SDL_WindowID window)
    1.17 +DrawLines(SDL_Window * window)
    1.18  {
    1.19      int i;
    1.20      int x1, y1, x2, y2;
    1.21 @@ -139,7 +139,7 @@
    1.22  }
    1.23  
    1.24  static void
    1.25 -DrawRects(SDL_WindowID window)
    1.26 +DrawRects(SDL_Window * window)
    1.27  {
    1.28      int i;
    1.29      int window_w, window_h;
    1.30 @@ -156,7 +156,7 @@
    1.31  }
    1.32  
    1.33  static void
    1.34 -DrawRectLineIntersections(SDL_WindowID window)
    1.35 +DrawRectLineIntersections(SDL_Window * window)
    1.36  {
    1.37      int i, j, window_w, window_h;
    1.38  
    1.39 @@ -186,7 +186,7 @@
    1.40  }
    1.41  
    1.42  static void
    1.43 -DrawRectRectIntersections(SDL_WindowID window)
    1.44 +DrawRectRectIntersections(SDL_Window * window)
    1.45  {
    1.46      int i, j;
    1.47  
    1.48 @@ -324,7 +324,7 @@
    1.49              case SDL_WINDOWEVENT:
    1.50                  switch (event.window.event) {
    1.51                  case SDL_WINDOWEVENT_EXPOSED:
    1.52 -                    SDL_SelectRenderer(event.window.windowID);
    1.53 +                    SDL_SelectRenderer(SDL_GetWindowFromID(event.window.windowID));
    1.54                      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.55                      SDL_RenderClear();
    1.56                      break;