Mercurial > sdl-ios-xcode
diff src/events/SDL_windowevents.c @ 5282:8e421890cdb8
Fixed bug #1117
There's a new event that's always sent when the window changes size, and that event is what the renderers listen for to determine if they need to rebind their context.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 12 Feb 2011 19:02:14 -0800 |
parents | b530ef003506 |
children |
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c Sat Feb 12 17:51:47 2011 -0800 +++ b/src/events/SDL_windowevents.c Sat Feb 12 19:02:14 2011 -0800 @@ -35,7 +35,8 @@ SDL_Event *new_event = (SDL_Event *)userdata; if (event->type == SDL_WINDOWEVENT && - event->window.event == SDL_WINDOWEVENT_RESIZED && + (event->window.event == SDL_WINDOWEVENT_RESIZED || + event->window.event == SDL_WINDOWEVENT_SIZE_CHANGED) && event->window.windowID == new_event->window.windowID) { /* We're about to post a new size event, drop the old one */ return 0;