Fixed setting the window visibility on iOS and Android

This commit is contained in:
Sam Lantinga 2012-01-22 22:19:08 -05:00
parent 254cf2c53c
commit fac9ba080a
2 changed files with 4 additions and 1 deletions

View File

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

View File

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