| 4315 | } |
| 4316 | |
| 4317 | static void AddWindowToSortBuffer(ImVector<ImGuiWindow*>* out_sorted_windows, ImGuiWindow* window) |
| 4318 | { |
| 4319 | out_sorted_windows->push_back(window); |
| 4320 | if (window->Active) |
| 4321 | { |
| 4322 | int count = window->DC.ChildWindows.Size; |
| 4323 | ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer); |
| 4324 | for (int i = 0; i < count; i++) |
| 4325 | { |
| 4326 | ImGuiWindow* child = window->DC.ChildWindows[i]; |
| 4327 | if (child->Active) |
| 4328 | AddWindowToSortBuffer(out_sorted_windows, child); |
| 4329 | } |
| 4330 | } |
| 4331 | } |
| 4332 | |
| 4333 | static void AddDrawListToDrawData(ImVector<ImDrawList*>* out_list, ImDrawList* draw_list) |
| 4334 | { |