Skip to content

Commit

Permalink
Fix: Setting flags disables fullscreen #4618 (#4619)
Browse files Browse the repository at this point in the history
  • Loading branch information
veins1 authored Dec 23, 2024
1 parent a3a25da commit e5d8de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/rcore_desktop_glfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e5d8de7

Please sign in to comment.