浏览代码

Fix typecast warnings in rcore (#5466)

pull/5469/head
Jeffery Myers 4 周前
committed by GitHub
父节点
当前提交
f67e70bb47
找不到此签名对应的密钥 GPG 密钥 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

正在加载...
取消
保存