Skip to content

Commit

Permalink
Patched to compile on iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 5, 2016
1 parent 881cccc commit 49e4768
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/uikit/SDL_uikitmodes.m
Expand Up @@ -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);
Expand Down

0 comments on commit 49e4768

Please sign in to comment.