mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
[rshapes] Allow DrawRectangleRounded()
to draw rectangles with a size < 1 (#4683)
Closes #4673
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user