Просмотр исходного кода

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 4 месяцев назад
committed by GitHub
Родитель
Сommit
2e652bbef1
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 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;

Загрузка…
Отмена
Сохранить