Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_render.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/video/directfb/SDL_DirectFB_render.c Sat Feb 12 17:51:47 2011 -0800 +++ b/src/video/directfb/SDL_DirectFB_render.c Sat Feb 12 19:02:14 2011 -0800 @@ -279,7 +279,7 @@ { SDL_DFB_RENDERERDATA(renderer); - if (event->event == SDL_WINDOWEVENT_RESIZED) { + if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) { /* Rebind the context to the window area and update matrices */ //SDL_CurrentContext = NULL; //data->updateSize = SDL_TRUE;