mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Merge pull request #139 from Pieroman/patch-1
Fixed full screen windows blanking unused monitors.
This commit is contained in:
commit
1047d5646d
@ -58,8 +58,12 @@ static void enterFullscreenMode(_GLFWwindow* window)
|
||||
|
||||
_glfwSetVideoMode(window->monitor, &window->videoMode);
|
||||
|
||||
NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[NSNumber numberWithBool:NO], NSFullScreenModeAllScreens,
|
||||
nil];
|
||||
|
||||
[window->ns.view enterFullScreenMode:window->monitor->ns.screen
|
||||
withOptions:nil];
|
||||
withOptions:opts];
|
||||
}
|
||||
|
||||
// Leave fullscreen mode
|
||||
|
Loading…
Reference in New Issue
Block a user