diff --git a/imgui.cpp b/imgui.cpp index 88cc36d..11f34fd 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2494,13 +2494,6 @@ ImGui::End(); } -void ImGui::BeginChild(ImGuiID id, ImVec2 size, bool border, ImGuiWindowFlags extra_flags) -{ - char str_id[32]; - ImFormatString(str_id, IM_ARRAYSIZE(str_id), "child_%x", id); - ImGui::BeginChild(str_id, size, border, extra_flags); -} - void ImGui::BeginChild(const char* str_id, ImVec2 size, bool border, ImGuiWindowFlags extra_flags) { ImGuiState& g = *GImGui; @@ -2536,6 +2529,13 @@ g.CurrentWindow->Flags &= ~ImGuiWindowFlags_ShowBorders; } +void ImGui::BeginChild(ImGuiID id, ImVec2 size, bool border, ImGuiWindowFlags extra_flags) +{ + char str_id[32]; + ImFormatString(str_id, IM_ARRAYSIZE(str_id), "child_%x", id); + ImGui::BeginChild(str_id, size, border, extra_flags); +} + void ImGui::EndChild() { ImGuiWindow* window = GetCurrentWindow();