Browse Source

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

pull/4633/head
veins1 3 weeks ago
committed by GitHub
parent
commit
e5d8de7c63
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/platforms/rcore_desktop_glfw.c

+ 1
- 1
src/platforms/rcore_desktop_glfw.c View File

@ -322,7 +322,7 @@ void SetWindowState(unsigned int flags)
}
// 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
}

Loading…
Cancel
Save