BeginPopup: Exposed extra_flags publicly. (#1533)

This commit is contained in:
omar
2018-01-07 18:13:01 +01:00
parent 3fc7cf190d
commit a8e5542d78
2 changed files with 3 additions and 3 deletions

View File

@ -3858,7 +3858,7 @@ bool ImGui::BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags)
return is_open;
}
bool ImGui::BeginPopup(const char* str_id)
bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags extra_flags)
{
ImGuiContext& g = *GImGui;
if (g.OpenPopupStack.Size <= g.CurrentPopupStack.Size) // Early out for performance
@ -3866,7 +3866,7 @@ bool ImGui::BeginPopup(const char* str_id)
g.NextWindowData.Clear(); // We behave like Begin() and need to consume those values
return false;
}
return BeginPopupEx(g.CurrentWindow->GetID(str_id), ImGuiWindowFlags_AlwaysAutoResize|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoSavedSettings);
return BeginPopupEx(g.CurrentWindow->GetID(str_id), extra_flags|ImGuiWindowFlags_AlwaysAutoResize|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoSavedSettings);
}
bool ImGui::IsPopupOpen(ImGuiID id)