Mercurial > sdl-ios-xcode
diff src/events/SDL_windowevents.c @ 5266:595814f561f7
There is only one width and height for the window. If those are changed during the course of a fullscreen mode change, then they'll stay that size when returning to windowed mode.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Feb 2011 20:49:13 -0800 |
parents | 7a963be087ef |
children | b530ef003506 |
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c Fri Feb 11 19:11:27 2011 -0800 +++ b/src/events/SDL_windowevents.c Fri Feb 11 20:49:13 2011 -0800 @@ -86,43 +86,19 @@ SDL_WINDOWPOS_ISUNDEFINED(data2)) { return 0; } - if (window->flags & SDL_WINDOW_FULLSCREEN) { - window->fullscreen.x = data1; - window->fullscreen.y = data1; - } else { - window->windowed.x = data1; - window->windowed.y = data1; - } if (data1 == window->x && data2 == window->y) { return 0; } window->x = data1; window->y = data2; - - if (window->flags & SDL_WINDOW_FULLSCREEN) { - /* Do we really want to do this? */ - return 0; - } break; case SDL_WINDOWEVENT_RESIZED: - if (window->flags & SDL_WINDOW_FULLSCREEN) { - window->fullscreen.w = data1; - window->fullscreen.h = data1; - } else { - window->windowed.w = data1; - window->windowed.h = data1; - } if (data1 == window->w && data2 == window->h) { return 0; } window->w = data1; window->h = data2; SDL_OnWindowResized(window); - - if (window->flags & SDL_WINDOW_FULLSCREEN) { - /* Do we really want to do this? */ - return 0; - } break; case SDL_WINDOWEVENT_MINIMIZED: if (window->flags & SDL_WINDOW_MINIMIZED) {