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);