src/video/uikit/SDL_uikitvideo.m
changeset 6062 2e4a1b92dc6f
parent 6044 35448a5ea044
child 6073 9738f2a8eee4
equal deleted inserted replaced
6061:4746757951ac 6062:2e4a1b92dc6f
   176     mode.h = h;
   176     mode.h = h;
   177     mode.refresh_rate = 0;
   177     mode.refresh_rate = 0;
   178 
   178 
   179     // UIScreenMode showed up in 3.2 (the iPad and later). We're
   179     // UIScreenMode showed up in 3.2 (the iPad and later). We're
   180     //  misusing this supports_multiple_displays flag here for that.
   180     //  misusing this supports_multiple_displays flag here for that.
   181     if (!SDL_UIKit_supports_multiple_displays) {
   181     if (SDL_UIKit_supports_multiple_displays) {
   182         UIScreenMode *uimode = [uiscreen currentMode];
   182         UIScreenMode *uimode = [uiscreen currentMode];
   183         [uimode retain];  // once for the desktop_mode
   183         [uimode retain];  // once for the desktop_mode
   184         [uimode retain];  // once for the current_mode
   184         [uimode retain];  // once for the current_mode
   185         mode.driverdata = uimode;
   185         mode.driverdata = uimode;
   186     }
   186     }