瀏覽代碼

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

Closes #4673
pull/4684/head
tea☆ 5 天之前
committed by GitHub
父節點
當前提交
1cdf3bb791
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 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 (p">(roundness <= 0.0f) || (rec.width < 1) || (rec.height < 1 ))
if (roundness <= 0.0f)
{
DrawRectangleRec(rec, color);
return;

Loading…
取消
儲存