mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-28 02:26:35 +00:00
Fix following bbe946f
(ImRect <> ImVec4)
This commit is contained in:
parent
bbe946fb6c
commit
3b828e6f96
@ -3847,7 +3847,7 @@ void ImGui::NewFrame()
|
|||||||
ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX);
|
ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX);
|
||||||
for (int n = 0; n < g.Viewports.Size; n++)
|
for (int n = 0; n < g.Viewports.Size; n++)
|
||||||
virtual_space.Add(g.Viewports[n]->GetRect());
|
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.CurveTessellationTol = g.Style.CurveTessellationTol;
|
||||||
g.DrawListSharedData.SetCircleSegmentMaxError(g.Style.CircleSegmentMaxError);
|
g.DrawListSharedData.SetCircleSegmentMaxError(g.Style.CircleSegmentMaxError);
|
||||||
g.DrawListSharedData.InitialFlags = ImDrawListFlags_None;
|
g.DrawListSharedData.InitialFlags = ImDrawListFlags_None;
|
||||||
|
Loading…
Reference in New Issue
Block a user