src/video/uikit/SDL_uikitwindow.m
changeset 6064 498e0234dfe6
parent 6044 35448a5ea044
child 6073 9738f2a8eee4
--- a/src/video/uikit/SDL_uikitwindow.m	Tue Nov 08 00:03:54 2011 -0500
+++ b/src/video/uikit/SDL_uikitwindow.m	Tue Nov 08 00:17:41 2011 -0500
@@ -69,9 +69,6 @@
 
     window->driverdata = data;
 
-    // !!! FIXME: should we force this? Shouldn't specifying FULLSCREEN
-    // !!! FIXME:  imply BORDERLESS?
-    window->flags |= SDL_WINDOW_FULLSCREEN;        /* window is always fullscreen */
     window->flags |= SDL_WINDOW_SHOWN;            /* only one window on iOS, always shown */
 
     // SDL_WINDOW_BORDERLESS controls whether status bar is hidden.
@@ -84,7 +81,7 @@
     } else {
         window->flags |= SDL_WINDOW_INPUT_FOCUS;  // always has input focus
 
-        if (window->flags & SDL_WINDOW_BORDERLESS) {
+        if (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS)) {
             [UIApplication sharedApplication].statusBarHidden = YES;
         } else {
             [UIApplication sharedApplication].statusBarHidden = NO;
@@ -167,7 +164,7 @@
     /* ignore the size user requested, and make a fullscreen window */
     // !!! FIXME: can we have a smaller view?
     UIWindow *uiwindow = [UIWindow alloc];
-    if (window->flags & SDL_WINDOW_BORDERLESS)
+    if (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS))
         uiwindow = [uiwindow initWithFrame:[uiscreen bounds]];
     else
         uiwindow = [uiwindow initWithFrame:[uiscreen applicationFrame]];