aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/03-font-render.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/03-font-render.lisp')
-rw-r--r--examples/03-font-render.lisp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/03-font-render.lisp b/examples/03-font-render.lisp
index e36dc44..bdd1c6e 100644
--- a/examples/03-font-render.lisp
+++ b/examples/03-font-render.lisp
@@ -16,7 +16,7 @@
(format t "Pressed a key, changing the color~%")
(setf (ww::text-color target) (random-text-color))
- (with-accessors ((x ww::x) (y ww::y) (w ww::unit-width) (h ww::unit-height)) target
+ (with-accessors ((x ww::x) (y ww::y) (w ww::width) (h ww::height)) target
(format t "x:~a,y:~a,width:~a,height:~a~%" x y w h))))
(ww::defhandler marquee
@@ -61,8 +61,8 @@
(ww::scale-by hello 3.0)
(setf
- (ww::x hello) (* 0.5 (- 800 (ww::unit-width hello)))
- (ww::y hello) (* 0.5 (- 600 (ww::unit-height hello))))
+ (ww::x hello) (* 0.5 (- 800 (ww::width hello)))
+ (ww::y hello) (* 0.5 (- 600 (ww::height hello))))
(ww::add-handler hello #'marquee)
(ww::add-handler hello #'change-text-color)
(ww::add-handler hello #'twirl-on-click)
@@ -71,7 +71,7 @@
(ww::scale-by instructions 2.0)
(setf
- (ww::x instructions) (* 0.5 (- 800 (ww::unit-width instructions))))
+ (ww::x instructions) (* 0.5 (- 800 (ww::width instructions))))
(ww::add-unit app instructions)))