To answer the FIXME, no, we shouldn't force this. The fullscreen flag implies borderless behavior even though the flag isn't set on the window (in case fullscreen is toggled)
authorSam Lantinga <slouken@libsdl.org>
Tue, 08 Nov 2011 00:17:41 -0500
changeset 6064498e0234dfe6
parent 6063 44cd82d8ea65
child 6070 69b6275bb5dc
To answer the FIXME, no, we shouldn't force this. The fullscreen flag implies borderless behavior even though the flag isn't set on the window (in case fullscreen is toggled)
src/video/uikit/SDL_uikitwindow.m
     1.1 --- a/src/video/uikit/SDL_uikitwindow.m	Tue Nov 08 00:03:54 2011 -0500
     1.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Tue Nov 08 00:17:41 2011 -0500
     1.3 @@ -69,9 +69,6 @@
     1.4  
     1.5      window->driverdata = data;
     1.6  
     1.7 -    // !!! FIXME: should we force this? Shouldn't specifying FULLSCREEN
     1.8 -    // !!! FIXME:  imply BORDERLESS?
     1.9 -    window->flags |= SDL_WINDOW_FULLSCREEN;        /* window is always fullscreen */
    1.10      window->flags |= SDL_WINDOW_SHOWN;            /* only one window on iOS, always shown */
    1.11  
    1.12      // SDL_WINDOW_BORDERLESS controls whether status bar is hidden.
    1.13 @@ -84,7 +81,7 @@
    1.14      } else {
    1.15          window->flags |= SDL_WINDOW_INPUT_FOCUS;  // always has input focus
    1.16  
    1.17 -        if (window->flags & SDL_WINDOW_BORDERLESS) {
    1.18 +        if (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS)) {
    1.19              [UIApplication sharedApplication].statusBarHidden = YES;
    1.20          } else {
    1.21              [UIApplication sharedApplication].statusBarHidden = NO;
    1.22 @@ -167,7 +164,7 @@
    1.23      /* ignore the size user requested, and make a fullscreen window */
    1.24      // !!! FIXME: can we have a smaller view?
    1.25      UIWindow *uiwindow = [UIWindow alloc];
    1.26 -    if (window->flags & SDL_WINDOW_BORDERLESS)
    1.27 +    if (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS))
    1.28          uiwindow = [uiwindow initWithFrame:[uiscreen bounds]];
    1.29      else
    1.30          uiwindow = [uiwindow initWithFrame:[uiscreen applicationFrame]];