mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 19:24:30 -05:00
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?
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user