Fixed setting the window visibility on iOS and Android
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 22:19:08 -0500
changeset 626247d6b41996e4
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
     1.1 --- a/src/video/android/SDL_androidwindow.c	Sun Jan 22 22:09:29 2012 -0500
     1.2 +++ b/src/video/android/SDL_androidwindow.c	Sun Jan 22 22:19:08 2012 -0500
     1.3 @@ -44,6 +44,7 @@
     1.4  
     1.5      window->flags &= ~SDL_WINDOW_RESIZABLE;     /* window is NEVER resizeable */
     1.6      window->flags |= SDL_WINDOW_FULLSCREEN;     /* window is always fullscreen */
     1.7 +    window->flags &= ~SDL_WINDOW_HIDDEN;
     1.8      window->flags |= SDL_WINDOW_SHOWN;          /* only one window on Android */
     1.9      window->flags |= SDL_WINDOW_INPUT_FOCUS;    /* always has input focus */    
    1.10  
     2.1 --- a/src/video/uikit/SDL_uikitwindow.m	Sun Jan 22 22:09:29 2012 -0500
     2.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Sun Jan 22 22:19:08 2012 -0500
     2.3 @@ -88,7 +88,9 @@
     2.4  
     2.5      window->driverdata = data;
     2.6  
     2.7 -    window->flags |= SDL_WINDOW_SHOWN;            /* only one window on iOS, always shown */
     2.8 +    /* only one window on iOS, always shown */
     2.9 +    window->flags &= ~SDL_WINDOW_HIDDEN;
    2.10 +    window->flags |= SDL_WINDOW_SHOWN;
    2.11  
    2.12      // SDL_WINDOW_BORDERLESS controls whether status bar is hidden.
    2.13      // This is only set if the window is on the main screen. Other screens