1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-12-03 07:28:51 -05:00

Fixed Mac OS X bug where request for one fullscreen window blacks out other monitors

This commit is contained in:
Pieroman 2013-09-19 21:33:44 +02:00
parent fd4ea8bc25
commit d3f22b8a04

View File

@ -58,8 +58,12 @@ static void enterFullscreenMode(_GLFWwindow* window)
_glfwSetVideoMode(window->monitor, &window->videoMode); _glfwSetVideoMode(window->monitor, &window->videoMode);
NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:NO], NSFullScreenModeAllScreens,
nil];
[window->ns.view enterFullScreenMode:window->monitor->ns.screen [window->ns.view enterFullScreenMode:window->monitor->ns.screen
withOptions:nil]; withOptions:opts];
} }
// Leave fullscreen mode // Leave fullscreen mode