[rshapes] Allow DrawRectangleRounded()
to draw rectangles with a size < 1 (#4683)
Closes #4673
This commit is contained in:
parent
da5a868e2a
commit
1cdf3bb791
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue