]> git.sur5r.net Git - cc65/commitdiff
Fix calculation of text width for bitmap fonts.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 20 Sep 2012 21:14:46 +0000 (21:14 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 20 Sep 2012 21:14:46 +0000 (21:14 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5829 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/tgi/tgi_gettextwidth.s

index 996910c3c74dbc75cf37cc72809c70778519ffda..c7bbcffd1b59d6e2993a234436299cf705ee04f8 100644 (file)
@@ -36,11 +36,8 @@ Text    := ptr3
 
 ; Return the width of the string for the bitmap font
 
-        ldy     _tgi_charwidth
-        sty     ptr1
         jsr     _strlen
-        jsr     umul8x16r16
-        ldy     _tgi_textscalew+2       ; Get rounded scale factor
+        ldy     _tgi_charwidth+1
         sty     ptr1
         jmp     umul8x16r16