From 3720f06ebae270fd8923056df13164c5cbf6bb5a Mon Sep 17 00:00:00 2001 From: tea Date: Sun, 12 Jan 2025 18:35:42 +0100 Subject: [PATCH] [rshapes] Allow `DrawRectangleRounded()` to draw rectangles with a size < 1 Closes #4673 --- src/rshapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rshapes.c b/src/rshapes.c index 7b967fbdb..704d74f40 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -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;