Fix: Setting flags disables fullscreen #4618 (#4619)

This commit is contained in:
veins1
2024-12-23 23:26:50 +05:00
committed by GitHub
parent a3a25da594
commit e5d8de7c63

View File

@@ -322,7 +322,7 @@ void SetWindowState(unsigned int flags)
} }
// State change: FLAG_FULLSCREEN_MODE // State change: FLAG_FULLSCREEN_MODE
if ((CORE.Window.flags & FLAG_FULLSCREEN_MODE) != (flags & FLAG_FULLSCREEN_MODE)) if ((CORE.Window.flags & FLAG_FULLSCREEN_MODE) != (flags & FLAG_FULLSCREEN_MODE) && ((flags & FLAG_FULLSCREEN_MODE) > 0))
{ {
ToggleFullscreen(); // NOTE: Window state flag updated inside function ToggleFullscreen(); // NOTE: Window state flag updated inside function
} }