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

Fixed setting the window visibility on iOS and Android

  • Loading branch information
slouken committed Jan 23, 2012
1 parent 65e1570 commit ca75c53395ae02a059a57dde8547f8d400ac48d7
Showing with 4 additions and 1 deletion.
  1. +1 −0 src/video/android/SDL_androidwindow.c
  2. +3 −1 src/video/uikit/SDL_uikitwindow.m
@@ -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 */

@@ -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

0 comments on commit ca75c53

Please sign in to comment.