diff test/testintersections.c @ 3685:64ce267332c6

Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 06:21:52 +0000
parents f638ded38b8a
children 3e69e077cb95
line wrap: on
line diff
--- a/test/testintersections.c	Thu Jan 21 05:49:41 2010 +0000
+++ b/test/testintersections.c	Thu Jan 21 06:21:52 2010 +0000
@@ -20,7 +20,7 @@
 static SDL_BlendMode blendMode = SDL_BLENDMODE_NONE;
 
 void
-DrawPoints(SDL_WindowID window)
+DrawPoints(SDL_Window * window)
 {
     int i;
     int x, y;
@@ -86,7 +86,7 @@
 
 
 void
-DrawLines(SDL_WindowID window)
+DrawLines(SDL_Window * window)
 {
     int i;
     int x1, y1, x2, y2;
@@ -139,7 +139,7 @@
 }
 
 static void
-DrawRects(SDL_WindowID window)
+DrawRects(SDL_Window * window)
 {
     int i;
     int window_w, window_h;
@@ -156,7 +156,7 @@
 }
 
 static void
-DrawRectLineIntersections(SDL_WindowID window)
+DrawRectLineIntersections(SDL_Window * window)
 {
     int i, j, window_w, window_h;
 
@@ -186,7 +186,7 @@
 }
 
 static void
-DrawRectRectIntersections(SDL_WindowID window)
+DrawRectRectIntersections(SDL_Window * window)
 {
     int i, j;
 
@@ -324,7 +324,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;