(OSX PPC) Return mainScreen always for 10.5 and below in

function get_chosen_screen
This commit is contained in:
twinaphex 2014-05-23 00:55:09 +02:00
parent c310d6866b
commit e6c36d5cda

View File

@ -438,18 +438,19 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
static RAScreen* get_chosen_screen(void)
{
NSArray *screens;
#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;
}
#endif
screens = (NSArray*)RAScreen.screens;
return (RAScreen*)[screens objectAtIndex:g_settings.video.monitor_index];
screens = (NSArray*)RAScreen.screens;
return (RAScreen*)[screens objectAtIndex:g_settings.video.monitor_index];
#endif
}
bool apple_gfx_ctx_init(void *data)