[rcore][GLFW] Fix ToggleBorderlessWindowed() entering exclusive fullscreen instead of windowed
ToggleBorderlessWindowed() passes monitors[monitor] as the monitor argument. but passing a non-NULL monitor here is what puts a window into full screen mode that's the exact same call ToggleFullscreen() makes, Since borderless windowed is supposed to stay in windowed mode, this should be NULL instead Signed-off-by: tillua467 <tillua467@gmail.com>
This commit is contained in:
parent
935f3da3ff
commit
dda51b7d82
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ void ToggleBorderlessWindowed(void)
|
|||
CORE.Window.screen.height = mode->height;
|
||||
|
||||
// Set screen position and size
|
||||
glfwSetWindowMonitor(platform.handle, monitors[monitor], CORE.Window.position.x, CORE.Window.position.y,
|
||||
glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.position.x, CORE.Window.position.y,
|
||||
CORE.Window.screen.width, CORE.Window.screen.height, mode->refreshRate);
|
||||
|
||||
// Refocus window
|
||||
|
|
|
|||
Loading…
Reference in a new issue