mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-02 18:14:32 +00:00
Viewports: rename ImGuiBackendFlags_HasParentViewportId->ImGuiBackendFlags_HasParentViewport. (#8948)
Introduced yesterday by 50a8bb2.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user