mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +01:00
Patched to compile on iOS.
This commit is contained in:
parent
881ccccbcf
commit
49e47688b4
@ -252,9 +252,9 @@ UIKit_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user