Add comment

This commit is contained in:
M374LX 2023-10-08 17:42:12 -03:00
parent 68f1b0e248
commit d1726c5a5d

View File

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