Mercurial > sdl-ios-xcode
diff src/events/SDL_windowevents.c @ 3502:98a819296cdc
Whenever a window becomes fullscreen, shown, unminimized, and has input focus it will change the display to the corresponding fullscreen video mode.
If it loses any of those properties the desktop mode will be restored.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Dec 2009 08:56:12 +0000 |
parents | 91a7e08cd238 |
children | 41cd18e05965 |
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c Tue Dec 01 06:15:10 2009 +0000 +++ b/src/events/SDL_windowevents.c Tue Dec 01 08:56:12 2009 +0000 @@ -86,6 +86,7 @@ return 0; } window->flags |= SDL_WINDOW_MINIMIZED; + SDL_OnWindowMinimized(window); break; case SDL_WINDOWEVENT_MAXIMIZED: if (window->flags & SDL_WINDOW_MAXIMIZED) { @@ -98,6 +99,7 @@ return 0; } window->flags &= ~(SDL_WINDOW_MINIMIZED | SDL_WINDOW_MAXIMIZED); + SDL_OnWindowRestored(window); break; case SDL_WINDOWEVENT_ENTER: if (window->flags & SDL_WINDOW_MOUSE_FOCUS) {