From 5cee7761614275bc65997b6b85fd47533f260b78 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 8 Nov 2011 00:03:54 -0500 Subject: [PATCH] The iOS driver sets the fullscreen and shown flags on the window during creation, so we need the mode code to be aware of that, since none of the other fullscreen/shown code paths get run. FIXME: Maybe we need a better way of detecting that? --- src/video/SDL_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index bb26ff094..08e534d2b 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1186,6 +1186,9 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags) SDL_SetWindowTitle(window, title); } SDL_FinishWindowCreation(window, flags); + + /* If the window was created fullscreen, make sure the mode code matches */ + SDL_UpdateFullscreenMode(window, FULLSCREEN_VISIBLE(window)); return window; }