Skip to content

Commit

Permalink
ImDrawList: Add InitialFringeScale (fixup: Initialize with Framebuffe…
Browse files Browse the repository at this point in the history
…rScale)
  • Loading branch information
thedmd committed Sep 29, 2024
1 parent 2dd9af9 commit a81a311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4779,6 +4779,7 @@ static void SetupDrawListSharedData()
g.DrawListSharedData.InitialFlags |= ImDrawListFlags_LegacyPolyline;
if (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset)
g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AllowVtxOffset;
g.DrawListSharedData.InitialFringeScale = g.IO.DisplayFramebufferScale.x ? 1.0f / g.IO.DisplayFramebufferScale.x : 1.0f;
}

void ImGui::NewFrame()
Expand Down

0 comments on commit a81a311

Please sign in to comment.