Viewports: rename ImGuiBackendFlags_HasParentViewportId->ImGuiBackendFlags_HasParentViewport. (#8948)

Introduced yesterday by 50a8bb2.
This commit is contained in:
ocornut
2025-10-02 16:20:05 +02:00
parent 0f7f6284d7
commit a0a6639fb5
13 changed files with 19 additions and 19 deletions

View File

@@ -16343,9 +16343,9 @@ static bool ImGui::GetWindowAlwaysWantOwnViewport(ImGuiWindow* window)
// Heuristic, see #8948: depends on how backends handle OS-level parenting.
static bool IsViewportAbove(ImGuiViewportP* potential_above, ImGuiViewportP* potential_below)
{
// If ImGuiBackendFlags_HasParentViewportId if set, ->ParentViewport chain should be accurate.
// If ImGuiBackendFlags_HasParentViewport if set, ->ParentViewport chain should be accurate.
ImGuiContext& g = *GImGui;
if (g.IO.BackendFlags & ImGuiBackendFlags_HasParentViewportId)
if (g.IO.BackendFlags & ImGuiBackendFlags_HasParentViewport)
{
for (ImGuiViewport* v = potential_above; v != NULL && v->ParentViewport; v = v->ParentViewport)
if (v->ParentViewport == potential_below)