Patched to compile on iOS.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 05 Jan 2016 05:38:55 -0500
changeset 1003303a8adcb6460
parent 10032 e661304722ce
child 10034 8764bcc13666
Patched to compile on iOS.
src/video/uikit/SDL_uikitmodes.m
     1.1 --- a/src/video/uikit/SDL_uikitmodes.m	Tue Jan 05 05:31:33 2016 -0500
     1.2 +++ b/src/video/uikit/SDL_uikitmodes.m	Tue Jan 05 05:38:55 2016 -0500
     1.3 @@ -252,9 +252,9 @@
     1.4          return -1;
     1.5      }
     1.6  
     1.7 -    SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata;
     1.8 -    const CGRect frame = [data->uiscreen applicationFrame];
     1.9 -    const float scale = (float) data->scale;
    1.10 +    SDL_DisplayData *data = (__bridge SDL_DisplayData *) display->driverdata;
    1.11 +    const CGRect frame = [data.uiscreen applicationFrame];
    1.12 +    const float scale = (float) data.uiscreen.scale;
    1.13      rect->x += (int) (frame.origin.x * scale);
    1.14      rect->y += (int) (frame.origin.y * scale);
    1.15      rect->w = (int) (frame.size.width * scale);