Skip to content
Permalink
Browse files

Patched to compile on iOS.

  • Loading branch information
icculus committed Jan 5, 2016
1 parent 881cccc commit 49e47688b427eabe6838359d670b9eefbe2bda41
Showing with 3 additions and 3 deletions.
  1. +3 −3 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);

0 comments on commit 49e4768

Please sign in to comment.