summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/math/rect.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/sly/math/rect.scm b/sly/math/rect.scm
index 856842b..07358f6 100644
--- a/sly/math/rect.scm
+++ b/sly/math/rect.scm
@@ -154,8 +154,8 @@ arguments."
(define (%rect-inflate rect width height)
"Grows the rect by the given amount. The rect stays centered around
its current center."
- (make-rect (+ (rect-x rect) (/ width 2))
- (+ (rect-y rect) (/ height 2))
+ (make-rect (- (rect-x rect) (/ width 2))
+ (- (rect-y rect) (/ height 2))
(+ (rect-width rect) width)
(+ (rect-height rect) height)))