src/video/uikit/SDL_uikitvideo.m
changeset 11306 45fbdef6a227
parent 10737 3406a0f8b041
child 11327 770196e01af1
equal deleted inserted replaced
11305:93ff3c6bff82 11306:45fbdef6a227
   177 UIKit_ComputeViewFrame(SDL_Window *window, UIScreen *screen)
   177 UIKit_ComputeViewFrame(SDL_Window *window, UIScreen *screen)
   178 {
   178 {
   179 #if !TARGET_OS_TV && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0)
   179 #if !TARGET_OS_TV && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0)
   180     BOOL hasiOS7 = UIKit_IsSystemVersionAtLeast(7.0);
   180     BOOL hasiOS7 = UIKit_IsSystemVersionAtLeast(7.0);
   181 
   181 
   182     if (hasiOS7 || (window->flags & (SDL_WINDOW_BORDERLESS|SDL_WINDOW_FULLSCREEN))) {
   182     /* The view should always show behind the status bar in iOS 7+. */
   183         /* The view should always show behind the status bar in iOS 7+. */
   183     if (!hasiOS7 && !(window->flags & (SDL_WINDOW_BORDERLESS|SDL_WINDOW_FULLSCREEN))) {
   184         return screen.bounds;
       
   185     } else {
       
   186         return screen.applicationFrame;
   184         return screen.applicationFrame;
   187     }
   185     }
   188 #else
   186 #endif
       
   187 
   189     return screen.bounds;
   188     return screen.bounds;
   190 #endif
       
   191 }
   189 }
   192 
   190 
   193 /*
   191 /*
   194  * iOS log support.
   192  * iOS log support.
   195  *
   193  *