Skip to content

Commit

Permalink
DrawList: Circles disappear when using a radius < 0.5f (#3491)
Browse files Browse the repository at this point in the history
Amend 051ce07
  • Loading branch information
thedmd authored and ocornut committed May 13, 2022
1 parent 9e0517a commit 9be61a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imgui_draw.cpp
Expand Up @@ -1482,7 +1482,7 @@ void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImV

void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness)
{
if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f)
if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f)
return;

if (num_segments <= 0)
Expand All @@ -1506,7 +1506,7 @@ void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int nu

void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments)
{
if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f)
if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f)
return;

if (num_segments <= 0)
Expand Down

0 comments on commit 9be61a7

Please sign in to comment.