Mercurial > sdl-ios-xcode
diff test/testdraw2.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 | 27ab20a36eba |
line wrap: on
line diff
--- 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;