test/testdraw2.c
changeset 3685 64ce267332c6
parent 3596 f638ded38b8a
child 4884 27ab20a36eba
     1.1 --- a/test/testdraw2.c	Thu Jan 21 05:49:41 2010 +0000
     1.2 +++ b/test/testdraw2.c	Thu Jan 21 06:21:52 2010 +0000
     1.3 @@ -19,7 +19,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 @@ -64,7 +64,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 @@ -118,7 +118,7 @@
    1.22  }
    1.23  
    1.24  void
    1.25 -DrawRects(SDL_WindowID window)
    1.26 +DrawRects(SDL_Window * window)
    1.27  {
    1.28      int i;
    1.29      SDL_Rect rect;
    1.30 @@ -249,7 +249,7 @@
    1.31              case SDL_WINDOWEVENT:
    1.32                  switch (event.window.event) {
    1.33                  case SDL_WINDOWEVENT_EXPOSED:
    1.34 -                    SDL_SelectRenderer(event.window.windowID);
    1.35 +                    SDL_SelectRenderer(SDL_GetWindowFromID(event.window.windowID));
    1.36                      SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
    1.37                      SDL_RenderClear();
    1.38                      break;