瀏覽代碼

Fix typecast warnings in rcore (#5466)

pull/5469/head
Jeffery Myers 4 週之前
committed by GitHub
父節點
當前提交
f67e70bb47
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      src/platforms/rcore_desktop_glfw.c

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

@ -227,8 +227,8 @@ void ToggleFullscreen(void)
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
{
Vector2 scaleDpi = GetWindowScaleDPI();
CORE.Window.screen.width *= scaleDpi.x;
CORE.Window.screen.height *= scaleDpi.y;
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y);
}
#endif
@ -306,8 +306,8 @@ void ToggleBorderlessWindowed(void)
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
{
Vector2 scaleDpi = GetWindowScaleDPI();
CORE.Window.screen.width *= scaleDpi.x;
CORE.Window.screen.height *= scaleDpi.y;
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y);
}
#endif

Loading…
取消
儲存