From 1cdf3bb791902e0adcca9e5607191d2fc97f37a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tea=E2=98=86?= Date: Sun, 12 Jan 2025 18:46:49 +0100 Subject: [PATCH] [rshapes] Allow `DrawRectangleRounded()` to draw rectangles with a size < 1 (#4683) Closes #4673 --- src/rshapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rshapes.c b/src/rshapes.c index 7b967fbd..704d74f4 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;