mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-11 05:16:12 +00:00
(iOS) Wrong example code
This commit is contained in:
parent
1448d55391
commit
2a0028b7b4
@ -228,7 +228,7 @@ static bool apple_gfx_ctx_set_video_mode(void *data, unsigned width, unsigned he
|
||||
|
||||
CGFloat apple_gfx_ctx_get_native_scale(void)
|
||||
{
|
||||
SEL selector = NSSelectorFromString(BOXSTRING("scale"));
|
||||
SEL selector = NSSelectorFromString(BOXSTRING("nativeScale"));
|
||||
RAScreen *screen = (RAScreen*)get_chosen_screen();
|
||||
|
||||
if (!screen)
|
||||
@ -237,7 +237,7 @@ CGFloat apple_gfx_ctx_get_native_scale(void)
|
||||
(void)selector;
|
||||
|
||||
#ifdef IOS
|
||||
if ([screen respondsToSelector:@selector(nativeScale)])
|
||||
if ([[UIScreen mainScreen] respondsToSelector:selector])
|
||||
{
|
||||
float ret;
|
||||
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:
|
||||
|
Loading…
x
Reference in New Issue
Block a user