Browse Source

[rshapes] Allow `DrawRectangleRounded()` to draw rectangles with a size < 1

Closes #4673
pull/4683/head
tea 5 days ago
parent
commit
3720f06eba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rshapes.c

+ 1
- 1
src/rshapes.c View File

@ -887,7 +887,7 @@ void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color)
void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color)
{ {
// Not a rounded rectangle // Not a rounded rectangle
if (p">(roundness <= 0.0f) || (rec.width < 1) || (rec.height < 1 ))
if (roundness <= 0.0f)
{ {
DrawRectangleRec(rec, color); DrawRectangleRec(rec, color);
return; return;

Loading…
Cancel
Save