Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
The iOS driver sets the fullscreen and shown flags on the window duri…
Browse files Browse the repository at this point in the history
…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 c0bb81e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit c0bb81e

Please sign in to comment.