瀏覽代碼

fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms (#4451)

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

+ 3
- 0
src/platforms/rcore_desktop_rgfw.c 查看文件

@ -520,6 +520,9 @@ void SetWindowMaxSize(int width, int height)
// Set window dimensions
void SetWindowSize(int width, int height)
{
CORE.Window.screen.width = width;
CORE.Window.screen.height = height;
RGFW_window_resize(platform.window, RGFW_AREA(width, height));
}

+ 3
- 0
src/platforms/rcore_web.c 查看文件

@ -667,6 +667,9 @@ void SetWindowMaxSize(int width, int height)
// Set window dimensions
void SetWindowSize(int width, int height)
{
CORE.Window.screen.width = width;
CORE.Window.Screen.height = height;
glfwSetWindowSize(platform.handle, width, height);
}

Loading…
取消
儲存