This commit is contained in:
ocornut 2015-02-27 09:13:23 +00:00
parent ebe363c951
commit d369e6b333
1 changed files with 2 additions and 2 deletions

View File

@ -3467,14 +3467,14 @@ static void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiSetCond
void ImGui::SetWindowCollapsed(bool collapsed, ImGuiSetCondition cond)
{
ImGuiWindow* window = GetCurrentWindow();
SetWindowCollapsed(window);
SetWindowCollapsed(window, collapsed, cond);
}
void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiSetCondition cond)
{
ImGuiWindow* window = FindWindowByName(name);
if (window)
SetWindowCollapsed(window);
SetWindowCollapsed(window, collapsed, cond);
}
void ImGui::SetWindowFocus()