| 15879 | } |
| 15880 | |
| 15881 | static void ScaleWindow(ImGuiWindow* window, float scale) |
| 15882 | { |
| 15883 | ImVec2 origin = window->Viewport->Pos; |
| 15884 | window->Pos = ImFloor((window->Pos - origin) * scale + origin); |
| 15885 | window->Size = ImTrunc(window->Size * scale); |
| 15886 | window->SizeFull = ImTrunc(window->SizeFull * scale); |
| 15887 | window->ContentSize = ImTrunc(window->ContentSize * scale); |
| 15888 | } |
| 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) |
no test coverage detected