From 49e47688b427eabe6838359d670b9eefbe2bda41 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 5 Jan 2016 05:38:55 -0500 Subject: [PATCH] Patched to compile on iOS. --- src/video/uikit/SDL_uikitmodes.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/uikit/SDL_uikitmodes.m b/src/video/uikit/SDL_uikitmodes.m index c02e6e6e7fff4..a54bfd0c5cf06 100644 --- a/src/video/uikit/SDL_uikitmodes.m +++ b/src/video/uikit/SDL_uikitmodes.m @@ -252,9 +252,9 @@ @implementation SDL_DisplayModeData 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);