(OSX PPC) Reduce errors from 15 to 12 - OSX PPC is pre-10.6
This commit is contained in:
parent
8295a173b8
commit
8536488955
|
@ -142,7 +142,9 @@ static char** waiting_argv;
|
|||
|
||||
[[RAGameView get] setFrame: [[self.window contentView] bounds]];
|
||||
[[self.window contentView] setAutoresizesSubviews:YES];
|
||||
#if defined(IOS) || defined(MAC_OS_X_VERSION_10_6)
|
||||
[[self.window contentView] addSubview:RAGameView.get];
|
||||
#endif
|
||||
[self.window makeFirstResponder:[RAGameView get]];
|
||||
|
||||
self.settingsWindow = [[[NSWindowController alloc] initWithWindowNibName:@"Settings"] autorelease];
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -431,12 +431,15 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
|
|||
@end
|
||||
|
||||
static RAScreen* get_chosen_screen(void)
|
||||
{
|
||||
if (g_settings.video.monitor_index >= RAScreen.screens.count)
|
||||
{
|
||||
#if defined(OSX) && !defined(MAC_OS_X_VERSION_10_6)
|
||||
#else
|
||||
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
|
||||
|
||||
NSArray *screens = [RAScreen screens];
|
||||
return (RAScreen*)[screens objectAtIndex:g_settings.video.monitor_index];
|
||||
|
|
Loading…
Reference in New Issue