GHOST_Cocoa, let new fullscreen also appear on 10.6 deployed builds

This commit is contained in:
Jens Verwiebe 2013-03-22 23:48:26 +00:00
parent ee6fe984ff
commit a333ef0100
2 changed files with 2 additions and 2 deletions

@ -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