Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

The iOS driver sets the fullscreen and shown flags on the window duri…

…ng 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?
  • Loading branch information
slouken committed Nov 8, 2011
1 parent c00d25a commit c0bb81e63b40dfac6e3eb51cd5ca37bc7913d979
Showing with 3 additions and 0 deletions.
  1. +3 −0 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;

0 comments on commit c0bb81e

Please sign in to comment.