[rcore][GLFW] Drop unused refresh rate when calling glfwSetWindowMonitor()

the glfw documentation clearly says
  - When the monitor is NULL, the position, width and height are used to place the window content area. The refresh rate is ignored when no monitor is specified.
so it' useless to pass a refreshrate, not to mention we are already doing it in 63f82f0ca8/src/platforms/rcore_desktop_glfw.c (L241)

Signed-off-by: tillua467 <tillua467@gmail.com>
This commit is contained in:
tillua467 2026-07-30 01:22:01 +06:00
commit 050042bcb9
No known key found for this signature in database
GPG key ID: F33B4148C65B4F5B

View file

@ -288,7 +288,7 @@ void ToggleBorderlessWindowed(void)
// Set screen position and size
glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.position.x, CORE.Window.position.y,
CORE.Window.screen.width, CORE.Window.screen.height, mode->refreshRate);
CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
// Refocus window
glfwFocusWindow(platform.handle);
@ -318,7 +318,7 @@ void ToggleBorderlessWindowed(void)
// Return to previous screen size and position
glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.position.x, CORE.Window.position.y,
CORE.Window.screen.width, CORE.Window.screen.height, mode->refreshRate);
CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
// Refocus window
glfwFocusWindow(platform.handle);