forked from bartvdbraak/blender
GHOST_Cocoa, let new fullscreen also appear on 10.6 deployed builds
This commit is contained in:
parent
ee6fe984ff
commit
a333ef0100
@ -662,7 +662,7 @@ GHOST_TSuccess GHOST_SystemCocoa::init()
|
||||
|
||||
[windowMenu addItemWithTitle:@"Zoom" action:@selector(performZoom:) keyEquivalent:@""];
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 // make it build with 10.6 deployment target, but as it is not available in 10.6, it will get weaklinked
|
||||
menuItem = [windowMenu addItemWithTitle:@"Enter Full Screen" action:@selector(toggleFullScreen:) keyEquivalent:@"f" ];
|
||||
[menuItem setKeyEquivalentModifierMask:NSCommandKeyMask];
|
||||
#endif
|
||||
|
@ -623,7 +623,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
|
||||
[m_window registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType,
|
||||
NSStringPboardType, NSTIFFPboardType, nil]];
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
||||
[NSApp setPresentationOptions:(NSApplicationPresentationFullScreen)];
|
||||
[m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user