Browse Source

Patched to compile on iOS.

Ryan C. Gordon 9 years ago
parent
commit
49e47688b4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/video/uikit/SDL_uikitmodes.m

+ 3 - 3
src/video/uikit/SDL_uikitmodes.m

@@ -252,9 +252,9 @@ UIKit_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
         return -1;
     }
 
-    SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata;
-    const CGRect frame = [data->uiscreen applicationFrame];
-    const float scale = (float) data->scale;
+    SDL_DisplayData *data = (__bridge SDL_DisplayData *) display->driverdata;
+    const CGRect frame = [data.uiscreen applicationFrame];
+    const float scale = (float) data.uiscreen.scale;
     rect->x += (int) (frame.origin.x * scale);
     rect->y += (int) (frame.origin.y * scale);
     rect->w = (int) (frame.size.width * scale);