浏览代码

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

Closes #4673
tea☆ 8 月之前
父节点
当前提交
1cdf3bb791
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rshapes.c

+ 1 - 1
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;