瀏覽代碼

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

pull/4633/head
veins1 3 週之前
committed by GitHub
父節點
當前提交
e5d8de7c63
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/platforms/rcore_desktop_glfw.c

+ 1
- 1
src/platforms/rcore_desktop_glfw.c 查看文件

@ -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…
取消
儲存