Răsfoiți Sursa

Work around to fix mouse positioning on scaled window

Maicon Santana 1 lună în urmă
părinte
comite
73950befca
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/platforms/rcore_web.c

+ 2 - 0
src/platforms/rcore_web.c

@@ -1824,6 +1824,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;