Fixed setting the window visibility on iOS and Android
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 22:19:08 -0500
changeset 6262 47d6b41996e4
parent 6261 caf3439402fd
child 6263 8f3cd223a343
Fixed setting the window visibility on iOS and Android
src/video/android/SDL_androidwindow.c
src/video/uikit/SDL_uikitwindow.m
--- a/src/video/android/SDL_androidwindow.c	Sun Jan 22 22:09:29 2012 -0500
+++ b/src/video/android/SDL_androidwindow.c	Sun Jan 22 22:19:08 2012 -0500
@@ -44,6 +44,7 @@
 
     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 */    
 
--- a/src/video/uikit/SDL_uikitwindow.m	Sun Jan 22 22:09:29 2012 -0500
+++ b/src/video/uikit/SDL_uikitwindow.m	Sun Jan 22 22:19:08 2012 -0500
@@ -88,7 +88,9 @@
 
     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