summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starling/node-2d.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm
index d24a2a3..3bd10ab 100644
--- a/starling/node-2d.scm
+++ b/starling/node-2d.scm
@@ -714,9 +714,9 @@
(define-method (on-change (9-patch <9-patch>) slot-name old new)
(case slot-name
((width)
- (set-rect-width! (render-rect 9-patch) width))
+ (set-rect-width! (render-rect 9-patch) new))
((height)
- (set-rect-height! (render-rect 9-patch) height)))
+ (set-rect-height! (render-rect 9-patch) new)))
(next-method))
(define-method (render (9-patch <9-patch>) alpha)