Patched to compile on iOS.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 05 Jan 2016 05:38:55 -0500
changeset 10033 03a8adcb6460
parent 10032 e661304722ce
child 10034 8764bcc13666
Patched to compile on iOS.
src/video/uikit/SDL_uikitmodes.m
--- a/src/video/uikit/SDL_uikitmodes.m	Tue Jan 05 05:31:33 2016 -0500
+++ b/src/video/uikit/SDL_uikitmodes.m	Tue Jan 05 05:38:55 2016 -0500
@@ -252,9 +252,9 @@
         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);