Mercurial > sdl-ios-xcode
diff src/events/SDL_windowevents.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 | 41cd18e05965 |
children | f7b03b6838cb |
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c Thu Jan 21 05:49:41 2010 +0000 +++ b/src/events/SDL_windowevents.c Thu Jan 21 06:21:52 2010 +0000 @@ -44,13 +44,11 @@ } int -SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1, +SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, int data1, int data2) { int posted; - SDL_Window *window; - window = SDL_GetWindowFromID(windowID); if (!window) { return 0; } @@ -152,7 +150,7 @@ event.window.event = windowevent; event.window.data1 = data1; event.window.data2 = data2; - event.window.windowID = windowID; + event.window.windowID = window->id; /* Fixes queue overflow with resize events that aren't processed */ if (windowevent == SDL_WINDOWEVENT_RESIZED) {