Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!)
| 15798 | |
| 15799 | // Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!) |
| 15800 | void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) |
| 15801 | { |
| 15802 | ImGuiContext& g = *GImGui; |
| 15803 | for (ImGuiWindow* window : g.Windows) |
| 15804 | if (window->Viewport == viewport) |
| 15805 | ScaleWindow(window, scale); |
| 15806 | } |
| 15807 | |
| 15808 | // Update viewports and monitor infos |
| 15809 | static void ImGui::UpdateViewportsNewFrame() |
nothing calls this directly
no test coverage detected