From d1726c5a5d118ee95590289971560220237ad0f1 Mon Sep 17 00:00:00 2001 From: M374LX Date: Sun, 8 Oct 2023 17:42:12 -0300 Subject: [PATCH] Add comment --- src/rcore_desktop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rcore_desktop.c b/src/rcore_desktop.c index f5a7ff6a7..304a09cc7 100644 --- a/src/rcore_desktop.c +++ b/src/rcore_desktop.c @@ -362,6 +362,7 @@ void ToggleFullscreen(void) int monitorHeight = GetMonitorHeight(monitorIndex); int refreshRate = GLFW_DONT_CARE; + //Prevent GLFW from changing the video mode if the screen is the same size as the monitor if (CORE.Window.screen.width == monitorWidth && CORE.Window.screen.height == monitorHeight) { refreshRate = GetMonitorRefreshRate(refreshRate);