You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched a lot but I did not find something satisfactory to work with HiDPI in the contexte of ImGUI/emscripten/GLFW.
I rewrote a part of my code to insert a scaling factor, for example by 2, then create a glfw window twice the size, as well as for the viewport. I rescaled fonts as well as the addRect/addline/addEverything I used in custom widgets. Then I display all and I get a really better quality. Unfortunately : the mouse now does not work, I guess it behaves as if the image was not downscaled by a factor 2.
What should be the good practice in this context ?
Best Regards,
Mike
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered:
Version/Branch of Dear ImGui:
Version 1.90.5
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
emscripten 3.1.57
Full config/build information:
No response
Details:
I searched a lot but I did not find something satisfactory to work with HiDPI in the contexte of ImGUI/emscripten/GLFW.
I rewrote a part of my code to insert a scaling factor, for example by 2, then create a glfw window twice the size, as well as for the viewport. I rescaled fonts as well as the addRect/addline/addEverything I used in custom widgets. Then I display all and I get a really better quality. Unfortunately : the mouse now does not work, I guess it behaves as if the image was not downscaled by a factor 2.
What should be the good practice in this context ?
Best Regards,
Mike
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: