Enabled Lion full screen.

This commit is contained in:
Camilla Berglund
2013-10-10 00:09:03 +02:00
parent 7775c87cd6
commit 9c15e2ff86
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -858,7 +858,12 @@ static GLboolean createWindow(_GLFWwindow* window,
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
if (floor(NSAppKitVersionNumber) >= NSAppKitVersionNumber10_7)
{
[window->ns.view setWantsBestResolutionOpenGLSurface:YES];
if (wndconfig->resizable)
[window->ns.object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
}
#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/
[window->ns.object setTitle:[NSString stringWithUTF8String:wndconfig->title]];