From 7775c87cd6b1a7dbda9dec9a24648e94516f7a6d Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 9 Oct 2013 23:58:43 +0200 Subject: [PATCH] Cleanup and change log update. --- README.md | 1 + src/cocoa_window.m | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 15c44a6a..1378172f 100644 --- a/README.md +++ b/README.md @@ -304,6 +304,7 @@ skills. - Peoro - Braden Pellett - Arturo J. PĂ©rez + - Pieroman - Jorge Rodriguez - Ed Ropple - Riku Salminen diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 167cb98f..e04d5dc4 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -58,12 +58,13 @@ static void enterFullscreenMode(_GLFWwindow* window) _glfwSetVideoMode(window->monitor, &window->videoMode); - NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys: - [NSNumber numberWithBool:NO], NSFullScreenModeAllScreens, - nil]; - + NSDictionary* options = [NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithBool:NO], + NSFullScreenModeAllScreens, + nil]; + [window->ns.view enterFullScreenMode:window->monitor->ns.screen - withOptions:opts]; + withOptions:options]; } // Leave fullscreen mode