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