| 2722 | } |
| 2723 | |
| 2724 | static void SetCurrentWindow(ImGuiWindow* window) |
| 2725 | { |
| 2726 | ImGuiContext& g = *GImGui; |
| 2727 | g.CurrentWindow = window; |
| 2728 | if (window) |
| 2729 | g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); |
| 2730 | } |
| 2731 | |
| 2732 | // Free up/compact internal window buffers, we can use this when a window becomes unused. |
| 2733 | // This is currently unused by the library, but you may call this yourself for easy GC. |