mirror of
https://github.com/libretro/RetroArch
synced 2025-01-06 10:11:54 +00:00
(OSX PPC) Return mainScreen always for 10.5 and below in
function get_chosen_screen
This commit is contained in:
parent
c310d6866b
commit
e6c36d5cda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user