瀏覽代碼

Returning recs

Tiny bug fix returning the rectangle on the rectangle util functions.
pull/5391/head
Matorio 2 月之前
父節點
當前提交
52bb2ca163
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/rtextures.c

+ 2
- 0
src/rtextures.c 查看文件

@ -4866,6 +4866,7 @@ Rectangle ExpandRectangle(Rectangle rec, float expand)
rec.y -= expand / 2.0f;
rec.width += expand;
rec.height += expand;
return rec;
}
// Shrink a rectangle uniformly
@ -4875,6 +4876,7 @@ Rectangle ShrinkRectangle(Rectangle rec, float shrink)
rec.y += shrink / 2.0f;
rec.width -= shrink;
rec.height -= shrink;
return rec;
}
// Get hexadecimal value for a Color

Loading…
取消
儲存