From 52bb2ca163b025df9edb16cef16c30c2a647aec8 Mon Sep 17 00:00:00 2001 From: Matorio <209939889+Matorio@users.noreply.github.com> Date: Sun, 7 Dec 2025 00:12:03 -0500 Subject: [PATCH] Returning recs Tiny bug fix returning the rectangle on the rectangle util functions. --- src/rtextures.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rtextures.c b/src/rtextures.c index c11b2e8aa..306252098 100644 --- a/src/rtextures.c +++ b/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