| 3910 | } |
| 3911 | |
| 3912 | static void SetCurrentWindow(ImGuiWindow* window) |
| 3913 | { |
| 3914 | ImGuiContext& g = *GImGui; |
| 3915 | g.CurrentWindow = window; |
| 3916 | g.CurrentTable = window && window->DC.CurrentTableIdx != -1 ? g.Tables.GetByIndex(window->DC.CurrentTableIdx) : NULL; |
| 3917 | g.CurrentDpiScale = 1.0f; // FIXME-DPI: WIP this is modified in docking |
| 3918 | if (window) |
| 3919 | { |
| 3920 | g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); |
| 3921 | g.FontScale = g.FontSize / g.Font->FontSize; |
| 3922 | ImGui::NavUpdateCurrentWindowIsScrollPushableX(); |
| 3923 | } |
| 3924 | } |
| 3925 | |
| 3926 | void ImGui::GcCompactTransientMiscBuffers() |
| 3927 | { |
no test coverage detected