Skip to content

Commit

Permalink
Updated drawFilledCircleDetailled. Refs #13894
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 19, 2023
1 parent a87744f commit 647aad7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/utils/gui/div/GLHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,25 +541,25 @@ GLHelper::drawFilledCircleDetailled(const GUIVisualizationSettings::DetailLevel
drawFilledCircle(radius, 32);
break;
case GUIVisualizationSettings::DetailLevel::Level1:
drawFilledCircle(radius, 8);
drawFilledCircle(radius, 16);
break;
case GUIVisualizationSettings::DetailLevel::Level2:
drawFilledCircle(radius, 8);
break;
default:
// draw only a square
GLHelper::pushMatrix();
glBegin(GL_QUADS);
glVertex2d(-radius, radius);
glVertex2d(-radius, -radius);
glVertex2d(radius, -radius);
glVertex2d(radius, radius);
glVertex2d(-radius, radius);
glVertex2d(-radius, -radius);
glVertex2d(radius, -radius);
glVertex2d(radius, radius);
glEnd();
GLHelper::popMatrix();
#ifdef CHECK_ELEMENTCOUNTER
myVertexCounter += 4;
#endif
break;
default:
// nothing to draw
break;
}
}

Expand Down

0 comments on commit 647aad7

Please sign in to comment.