瀏覽代碼

Merge pull request #5115 from maiconpintoabreu/web_resizable_window_mouse_issue

[rcore][web] Work around to fix mouse positioning on scaled window
pull/5118/head
Ray 2 月之前
committed by GitHub
父節點
當前提交
2e652bbef1
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/platforms/rcore_web.c

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

@ -1822,6 +1822,8 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent *
CORE.Window.screen.width = width;
CORE.Window.screen.height = height;
glfwSetWindowSize(platform.handle, CORE.Window.screen.width, CORE.Window.screen.height);
// NOTE: Postprocessing texture is not scaled to new size
return 0;

Loading…
取消
儲存