Viewport, Platform, DPI: Back-end store per-monitor DPI information in ImGuiPlatformMonitor. (#1542, #1676)

This commit is contained in:
omar
2018-04-13 18:07:23 +02:00
parent f270d6c52c
commit 950539b768
5 changed files with 29 additions and 17 deletions

View File

@ -1879,6 +1879,8 @@ struct ImGuiPlatformMonitor
{
ImVec2 Pos;
ImVec2 Size;
float DpiScale;
ImGuiPlatformMonitor() { Pos = ImVec2(0,0); Size = ImVec2(0,0); DpiScale = 1.0f; }
};
// (Optional) Setup required only if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) is enabled