diff options
author | Sam Lantinga <slouken@libsdl.org> | 2010-01-21 06:21:52 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2010-01-21 06:21:52 +0000 |
commit | a0e019f7868590ffd5a6098d6d2a91d14ef42141 (patch) | |
tree | b9c8869edeedb417bfb247f1e3c838a905a36c5f /test/testintersections.c | |
parent | d7496843fcee00a06e663cfb7c5e6616753c9dbb (diff) |
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404438
Diffstat (limited to 'test/testintersections.c')
-rw-r--r-- | test/testintersections.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/testintersections.c b/test/testintersections.c index c222210c..7327e3a0 100644 --- a/test/testintersections.c +++ b/test/testintersections.c @@ -20,7 +20,7 @@ static int current_color = 255; 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 @@ add_line(int x1, int y1, int x2, int y2) void -DrawLines(SDL_WindowID window) +DrawLines(SDL_Window * window) { int i; int x1, y1, x2, y2; @@ -139,7 +139,7 @@ add_rect(int x1, int y1, int x2, int y2) } static void -DrawRects(SDL_WindowID window) +DrawRects(SDL_Window * window) { int i; int window_w, window_h; @@ -156,7 +156,7 @@ DrawRects(SDL_WindowID window) } static void -DrawRectLineIntersections(SDL_WindowID window) +DrawRectLineIntersections(SDL_Window * window) { int i, j, window_w, window_h; @@ -186,7 +186,7 @@ DrawRectLineIntersections(SDL_WindowID window) } static void -DrawRectRectIntersections(SDL_WindowID window) +DrawRectRectIntersections(SDL_Window * window) { int i, j; @@ -324,7 +324,7 @@ main(int argc, char *argv[]) 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; |