fix text rendering bugs (#841)

This commit is contained in:
water111
2021-09-08 22:04:30 -04:00
committed by GitHub
parent bb49790d3d
commit 18df68b1f7
6 changed files with 193 additions and 156 deletions
+2 -3
View File
@@ -509,7 +509,7 @@
(if (logtest? (-> gp-0 flags) 4)
(+! (-> gp-0 origin x) (* 0.5 (-> font-ctxt width)))
)
(set! sv-176 (the-as int (-> sv-140 0)))
(set! sv-176 (the-as int (-> sv-140 0))) ;; char
(set! sv-184 0)
(set! sv-192 0)
(set! sv-200 0)
@@ -517,8 +517,7 @@
(set! sv-212 (the-as symbol #f))
(set! (-> *game-text-line* data 0) (the-as uint 0))
(while
(or
(not (and (zero? sv-176) (zero? sv-184) (zero? sv-192)))
(or (not (and (zero? sv-176) (zero? sv-184) (zero? sv-192)))
(>= sv-156 (-> gp-0 origin y))
)
(cond