Skip to content

Commit

Permalink
Fix: Setting flags disables fullscreen raysan5#4618
Browse files Browse the repository at this point in the history
  • Loading branch information
veins1 authored Dec 19, 2024
1 parent ab83e6d commit 7165b67
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 7165b67

Please sign in to comment.