summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-04-16 08:44:26 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-04-16 08:44:26 -0400
commit3183130650a43363e1d1de1b7c585bb303194d96 (patch)
tree85deb8914da58f1fa9fa4c71f5642ce7292c9b31
parent5ea4867257558bccec33840242dbffd21ead9296 (diff)
node-2d: Fix bug in 9-patch auto-resizing.
-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)