mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Make this runtime too
This commit is contained in:
parent
c9c46b8060
commit
a4eae00ac2
@ -162,19 +162,19 @@ static char** waiting_argv;
|
|||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NSWindowCollectionBehaviorFullScreenPrimary
|
#define NS_WINDOW_COLLECTION_BEHAVIOR_FULLSCREEN_PRIMARY (1 << 17)
|
||||||
#define NSWindowCollectionBehaviorFullScreenPrimary (1 << 7)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
SEL selector = NSSelectorFromString(BOXSTRING("setCollectionBehavior:"));
|
SEL selector = NSSelectorFromString(BOXSTRING("setCollectionBehavior:"));
|
||||||
|
SEL fsselector = NSSelectorFromString(BOXSTRING("toggleFullScreen:"));
|
||||||
apple_platform = self;
|
apple_platform = self;
|
||||||
|
|
||||||
if ([self.window respondsToSelector:selector])
|
if ([self.window respondsToSelector:selector])
|
||||||
{
|
{
|
||||||
[self.window setCollectionBehavior:[self.window collectionBehavior] | NSWindowCollectionBehaviorFullScreenPrimary];
|
if ([self.window respondsToSelector:fsselector])
|
||||||
|
[self.window setCollectionBehavior:NS_WINDOW_COLLECTION_BEHAVIOR_FULLSCREEN_PRIMARY];
|
||||||
}
|
}
|
||||||
|
|
||||||
[self.window setAcceptsMouseMovedEvents: YES];
|
[self.window setAcceptsMouseMovedEvents: YES];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user