From 2a0028b7b4118a272abbaf00a278f40f3084ab4b Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 24 Feb 2015 05:59:39 +0100 Subject: [PATCH] (iOS) Wrong example code --- apple/common/apple_gfx_context.c.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/common/apple_gfx_context.c.inl b/apple/common/apple_gfx_context.c.inl index 3a81a6df92..7da67684f1 100644 --- a/apple/common/apple_gfx_context.c.inl +++ b/apple/common/apple_gfx_context.c.inl @@ -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: