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

Commit

Permalink
Fixed setting the window visibility on iOS and Android
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 23, 2012
1 parent 65e1570 commit ca75c53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/video/android/SDL_androidwindow.c
Expand Up @@ -44,6 +44,7 @@ Android_CreateWindow(_THIS, SDL_Window * window)

window->flags &= ~SDL_WINDOW_RESIZABLE; /* window is NEVER resizeable */
window->flags |= SDL_WINDOW_FULLSCREEN; /* window is always fullscreen */
window->flags &= ~SDL_WINDOW_HIDDEN;
window->flags |= SDL_WINDOW_SHOWN; /* only one window on Android */
window->flags |= SDL_WINDOW_INPUT_FOCUS; /* always has input focus */

Expand Down
4 changes: 3 additions & 1 deletion src/video/uikit/SDL_uikitwindow.m
Expand Up @@ -88,7 +88,9 @@ static int SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bo

window->driverdata = data;

window->flags |= SDL_WINDOW_SHOWN; /* only one window on iOS, always shown */
/* only one window on iOS, always shown */
window->flags &= ~SDL_WINDOW_HIDDEN;
window->flags |= SDL_WINDOW_SHOWN;

// SDL_WINDOW_BORDERLESS controls whether status bar is hidden.
// This is only set if the window is on the main screen. Other screens
Expand Down

0 comments on commit ca75c53

Please sign in to comment.