From 3b828e6f96ea8a2fdbf5beda942bcd43a4b1f613 Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 28 Jan 2020 20:29:07 +0100 Subject: [PATCH] Fix following bbe946f (ImRect <> ImVec4) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 9cdc2f33..af9e76f3 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3847,7 +3847,7 @@ void ImGui::NewFrame() ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); for (int n = 0; n < g.Viewports.Size; n++) virtual_space.Add(g.Viewports[n]->GetRect()); - g.DrawListSharedData.ClipRectFullscreen = ImVec4(virtual_space.Min, virtual_space.Max); + g.DrawListSharedData.ClipRectFullscreen = ImVec4(virtual_space.Min.x, virtual_space.Min.y, virtual_space.Max.x, virtual_space.Max.y); g.DrawListSharedData.CurveTessellationTol = g.Style.CurveTessellationTol; g.DrawListSharedData.SetCircleSegmentMaxError(g.Style.CircleSegmentMaxError); g.DrawListSharedData.InitialFlags = ImDrawListFlags_None;