Fixed a bug (Greg King).
git-svn-id: svn://svn.cc65.org/cc65/trunk@5104 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1f95085ffe
commit
03b147e71e
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ Text := ptr3
|
|||
;
|
||||
|
||||
.code
|
||||
.proc _tgi_gettextwidth
|
||||
.proc _tgi_gettextwidth
|
||||
|
||||
ldy _tgi_font
|
||||
bne @L1 ; Jump if vector font
|
||||
|
@ -37,7 +37,7 @@ Text := ptr3
|
|||
; Return the width of the string for the bitmap font
|
||||
|
||||
ldy _tgi_charwidth
|
||||
sta ptr1
|
||||
sty ptr1
|
||||
jsr _strlen
|
||||
jsr umul8x16r16
|
||||
ldy _tgi_textscalew+2 ; Get rounded scale factor
|
||||
|
|
Loading…
Add table
Reference in a new issue