summaryrefslogtreecommitdiff
path: root/chickadee/graphics/font.scm
diff options
context:
space:
mode:
Diffstat (limited to 'chickadee/graphics/font.scm')
-rw-r--r--chickadee/graphics/font.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/graphics/font.scm b/chickadee/graphics/font.scm
index 8adba8d..3635676 100644
--- a/chickadee/graphics/font.scm
+++ b/chickadee/graphics/font.scm
@@ -126,7 +126,7 @@ display it at POINT-SIZE. By default, the ASCII character is used."
(row height))
(let ((gray (u8vector-ref glyph-pixels
(+ (* row pitch) column)))
- (offset (+ (* (+ y row) texture-size 4)
+ (offset (+ (* (- height (+ y row) 1) texture-size 4)
(* (+ x column) 4))))
(u8vector-set! pixels offset 255)
(u8vector-set! pixels (+ offset 1) 255)