From 050042bcb947eb6089aaed71dc917f2bdbddf13c Mon Sep 17 00:00:00 2001 From: tillua467 Date: Thu, 30 Jul 2026 01:22:01 +0600 Subject: [PATCH] [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 https://github.com/raysan5/raylib/blob/63f82f0ca873f762ffea0c83ed14e461a905b7fc/src/platforms/rcore_desktop_glfw.c#L241 Signed-off-by: tillua467 --- src/platforms/rcore_desktop_glfw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index db7452b2c..70a64e650 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -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);