Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!)
| 15889 | |
| 15890 | // Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!) |
| 15891 | void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) |
| 15892 | { |
| 15893 | ImGuiContext& g = *GImGui; |
| 15894 | for (ImGuiWindow* window : g.Windows) |
| 15895 | if (window->Viewport == viewport) |
| 15896 | ScaleWindow(window, scale); |
| 15897 | } |
| 15898 | |
| 15899 | // Update viewports and monitor infos |
| 15900 | static void ImGui::UpdateViewportsNewFrame() |
nothing calls this directly
no test coverage detected