Skip to content

Commit

Permalink
[rshapes] Allow DrawRectangleRounded() to draw rectangles with a si…
Browse files Browse the repository at this point in the history
…ze < 1 (#4683)

Closes #4673
  • Loading branch information
teatwig authored Jan 12, 2025
1 parent da5a868 commit 1cdf3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rshapes.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color)
void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color)
{
// Not a rounded rectangle
if ((roundness <= 0.0f) || (rec.width < 1) || (rec.height < 1 ))
if (roundness <= 0.0f)
{
DrawRectangleRec(rec, color);
return;
Expand Down

0 comments on commit 1cdf3bb

Please sign in to comment.