summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-11-08 00:03:54 -0500
committerSam Lantinga <slouken@libsdl.org>2011-11-08 00:03:54 -0500
commit71e7f80239e1d525c08d3302f5251ec993baecbd (patch)
treedf3cdbc37a08bfc8ac9e009f6f61a15f6f6b15df /src/video
parent0237e2e14db88d41c055c228b166aaf831fa1358 (diff)
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?
Diffstat (limited to 'src/video')
-rw-r--r--src/video/SDL_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index bb26ff09..08e534d2 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;
}