-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
Glfw support is missing content scale option.
eg: glfwGetWindowContentScale
This causes glfwGetWindowSize and glfwGetFramebufferSize to return the same size even on platforms with scale != 1.0. The same problem doesn't exist with sdl2 as upstream sdl2 uses emscripten_get_device_pixel_ratio and deals with this itself.
This glfw problem makes the canvas really blurry on hidpi screens due to the mismatch of raw pixels and canvas pixels.
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.26-git (8eaf19f)
clang version 16.0.0 (/srcdest/llvm-project f81f0cb75a2808a67d2662f044ad07628fc9d900)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /opt/emscripten-llvm/bin