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.
authorSam Lantinga <slouken@libsdl.org>
Tue, 08 Nov 2011 00:03:54 -0500
changeset 6063 44cd82d8ea65
parent 6062 2e4a1b92dc6f
child 6064 498e0234dfe6
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
--- a/src/video/SDL_video.c	Tue Nov 08 00:02:47 2011 -0500
+++ b/src/video/SDL_video.c	Tue Nov 08 00:03:54 2011 -0500
@@ -1186,6 +1186,9 @@
         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;
 }