test/testdraw2.c
changeset 3685 64ce267332c6
parent 3596 f638ded38b8a
child 4884 27ab20a36eba
--- a/test/testdraw2.c	Thu Jan 21 05:49:41 2010 +0000
+++ b/test/testdraw2.c	Thu Jan 21 06:21:52 2010 +0000
@@ -19,7 +19,7 @@
 static SDL_BlendMode blendMode = SDL_BLENDMODE_NONE;
 
 void
-DrawPoints(SDL_WindowID window)
+DrawPoints(SDL_Window * window)
 {
     int i;
     int x, y;
@@ -64,7 +64,7 @@
 }
 
 void
-DrawLines(SDL_WindowID window)
+DrawLines(SDL_Window * window)
 {
     int i;
     int x1, y1, x2, y2;
@@ -118,7 +118,7 @@
 }
 
 void
-DrawRects(SDL_WindowID window)
+DrawRects(SDL_Window * window)
 {
     int i;
     SDL_Rect rect;
@@ -249,7 +249,7 @@
             case SDL_WINDOWEVENT:
                 switch (event.window.event) {
                 case SDL_WINDOWEVENT_EXPOSED:
-                    SDL_SelectRenderer(event.window.windowID);
+                    SDL_SelectRenderer(SDL_GetWindowFromID(event.window.windowID));
                     SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
                     SDL_RenderClear();
                     break;