1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

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

View File

@ -214,6 +214,7 @@ See the [GLFW documentation](http://www.glfw.org/docs/latest/).
- [Win32] Bugfix: The disabled cursor mode clip rectangle was updated for - [Win32] Bugfix: The disabled cursor mode clip rectangle was updated for
unfocused windows unfocused windows
- [Cocoa] Added dependency on CoreVideo framework for refresh rate retrieval - [Cocoa] Added dependency on CoreVideo framework for refresh rate retrieval
- [Cocoa] Enabled Lion full screen for resizable windowed mode windows
- [Cocoa] Bugfix: The `GLFW_KEY_GRAVE_ACCENT` key was reported as - [Cocoa] Bugfix: The `GLFW_KEY_GRAVE_ACCENT` key was reported as
`GLFW_KEY_WORLD_1` and vice versa `GLFW_KEY_WORLD_1` and vice versa
- [Cocoa] Bugfix: The `GLFW_KEY_F13` key was reported as - [Cocoa] Bugfix: The `GLFW_KEY_F13` key was reported as

View File

@ -858,7 +858,12 @@ static GLboolean createWindow(_GLFWwindow* window,
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
if (floor(NSAppKitVersionNumber) >= NSAppKitVersionNumber10_7) if (floor(NSAppKitVersionNumber) >= NSAppKitVersionNumber10_7)
{
[window->ns.view setWantsBestResolutionOpenGLSurface:YES]; [window->ns.view setWantsBestResolutionOpenGLSurface:YES];
if (wndconfig->resizable)
[window->ns.object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
}
#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ #endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/
[window->ns.object setTitle:[NSString stringWithUTF8String:wndconfig->title]]; [window->ns.object setTitle:[NSString stringWithUTF8String:wndconfig->title]];