summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-12-13 08:18:06 -0500
committerDavid Thompson <dthompson2@worcester.edu>2018-12-13 08:18:32 -0500
commit3b847cdf484001e12f5c739fdbf5cc9ae72394d8 (patch)
tree29e9fe84af9945cad94a3cc317aeac316c757719
parent07afacff3dcf1a5dbe1c0ff87a03d56dee524fa3 (diff)
render: font: Use set-vec2! where convenient.
* chickadee/render/font.scm (draw-text*): Use new set-vec2! procedure.
-rw-r--r--chickadee/render/font.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/chickadee/render/font.scm b/chickadee/render/font.scm
index e1958a2..8ecd219 100644
--- a/chickadee/render/font.scm
+++ b/chickadee/render/font.scm
@@ -327,8 +327,7 @@ extension must be either .xml or .fnt."
(+ (vec2-x cursor)
(vec2-x
(font-char-advance char))))))
- (set-vec2-x! cursor 0.0)
- (set-vec2-y! cursor 0.0)
+ (set-vec2! cursor 0.0 0.0)
(string-for-each render-char text start end))))
(define %default-scale (vec2 1.0 1.0))