Returning recs

Tiny bug fix returning the rectangle on the rectangle util functions.
This commit is contained in:
Matorio 2025-12-07 00:12:03 -05:00
parent 8cad35a757
commit 52bb2ca163

View File

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