mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05: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