Commit 49e47688b427eabe6838359d670b9eefbe2bda41

Ryan C. Gordon 2016-01-05T05:38:55

Patched to compile on iOS.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/video/uikit/SDL_uikitmodes.m b/src/video/uikit/SDL_uikitmodes.m
index c02e6e6..a54bfd0 100644
--- a/src/video/uikit/SDL_uikitmodes.m
+++ b/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);