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
Windows 10-post some build tries to preempt non-dpi-aware scaling issues for processes on HiDPI monitors, which results in pre-scaled values returned by various win32 functions which are otherwise unexpected by imgui. The solution is relatively simple, but is otherwise not solvable by simply using ImGui_ImplWin32_EnableDpiAwareness(), as on builds Windows10 or higher that function will use SetThreadDpiAwarenessContext() as opposed to SetProcessDpiAwareness()
Using a combination of both SetProcessDpiAwareness() and ImGui_ImplWin32_EnableDpiAwareness() can do the trick, and disable Windows' preemptive scaling for HiDPI monitors.
The text was updated successfully, but these errors were encountered:
Windows 10-post some build tries to preempt non-dpi-aware scaling issues for processes on HiDPI monitors, which results in pre-scaled values returned by various
win32
functions which are otherwise unexpected byimgui
. The solution is relatively simple, but is otherwise not solvable by simply usingImGui_ImplWin32_EnableDpiAwareness()
, as on builds Windows10 or higher that function will useSetThreadDpiAwarenessContext()
as opposed toSetProcessDpiAwareness()
https://github.com/ocornut/imgui/blob/dad1047b04e335454d17cd546c29a44173da8eb8/backends/imgui_impl_win32.cpp#L930-L957
Using a combination of both
SetProcessDpiAwareness()
andImGui_ImplWin32_EnableDpiAwareness()
can do the trick, and disable Windows' preemptive scaling for HiDPI monitors.The text was updated successfully, but these errors were encountered: