mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Backport iPhone 6+ display fix
This commit is contained in:
parent
509e7f8fc8
commit
b670f204cd
@ -231,6 +231,7 @@ static void apple_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned*
|
|||||||
RAScreen *screen = (RAScreen*)get_chosen_screen();
|
RAScreen *screen = (RAScreen*)get_chosen_screen();
|
||||||
CGRect size = screen.bounds;
|
CGRect size = screen.bounds;
|
||||||
gl_t *gl = (gl_t*)data;
|
gl_t *gl = (gl_t*)data;
|
||||||
|
CGFloat screenscale = screen.scale;
|
||||||
|
|
||||||
if (gl)
|
if (gl)
|
||||||
{
|
{
|
||||||
@ -241,9 +242,12 @@ static void apple_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned*
|
|||||||
size = g_view.bounds;
|
size = g_view.bounds;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
*width = CGRectGetWidth(size) * screen.scale;
|
if ([screen respondsToSelector:@selector(nativeScale)])
|
||||||
*height = CGRectGetHeight(size) * screen.scale;
|
screenscale = screen.nativeScale;
|
||||||
|
|
||||||
|
*width = CGRectGetWidth(size) * screenscale;
|
||||||
|
*height = CGRectGetHeight(size) * screenscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void apple_gfx_ctx_update_window_title(void *data)
|
static void apple_gfx_ctx_update_window_title(void *data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user