diff --git a/apple/common/apple_gfx_context.c.inl b/apple/common/apple_gfx_context.c.inl index 4efab06e9a..1be2888501 100644 --- a/apple/common/apple_gfx_context.c.inl +++ b/apple/common/apple_gfx_context.c.inl @@ -6,15 +6,13 @@ static RAScreen* get_chosen_screen(void) #if defined(OSX) && !defined(MAC_OS_X_VERSION_10_6) return [NSScreen mainScreen]; #else - NSArray *screens; if (g_settings.video.monitor_index >= RAScreen.screens.count) { RARCH_WARN("video_monitor_index is greater than the number of connected monitors; using main screen instead.\n"); return RAScreen.mainScreen; } - screens = (NSArray*)RAScreen.screens; - return (RAScreen*)[screens objectAtIndex:g_settings.video.monitor_index]; + return (RAScreen*)[RAScreen.screens objectAtIndex:g_settings.video.monitor_index]; #endif }