VesCodes / ImGui

ImGui plugin for Unreal Engine
MIT License
107 stars 15 forks source link

Added support for multiple monitors with differing DPIs #18

Closed jamesrawpower closed 3 weeks ago

jamesrawpower commented 1 month ago

There was an issue where internal imgui windows are not resized to match the DPI of the owning unreal window when it gets changed. This happens for example when an unreal window is dragged to a new monitor with a different DPI. This commit fixes this problem by ensuring that the DPI from the owning unreal window is used to define the DPI of each IMGUI viewport, and additionally it enables the code path inside IMGUI that resizes the imgui windows when their DPI changes.

VesCodes commented 3 weeks ago

Thank you!