mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-03 03:50:06 +00:00
don't use devicePixelRatio as it's not needed with WebGPU
This commit is contained in:
parent
39bd33a192
commit
60984d1a34
1 changed files with 0 additions and 5 deletions
|
|
@ -364,11 +364,6 @@ void ImGui_ImplEmscripten_Init() {
|
|||
// set up initial display size values
|
||||
imgui_io.DisplaySize.x = emscripten::val::global("window")["innerWidth"].as<float>();
|
||||
imgui_io.DisplaySize.y = emscripten::val::global("window")["innerHeight"].as<float>();
|
||||
{
|
||||
auto const device_pixel_ratio{emscripten::val::global("window")["devicePixelRatio"].as<float>()};
|
||||
imgui_io.DisplayFramebufferScale.x = device_pixel_ratio;
|
||||
imgui_io.DisplayFramebufferScale.y = device_pixel_ratio;
|
||||
}
|
||||
|
||||
emscripten_set_mousemove_callback(
|
||||
EMSCRIPTEN_EVENT_TARGET_WINDOW, // target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue