mirror of
https://github.com/cc65/cc65.git
synced 2024-06-22 02:29:29 +00:00
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
|
@ -29,7 +29,7 @@ Text := ptr3
|
||||||
;
|
;
|
||||||
|
|
||||||
.code
|
.code
|
||||||
.proc _tgi_gettextwidth
|
.proc _tgi_gettextwidth
|
||||||
|
|
||||||
ldy _tgi_font
|
ldy _tgi_font
|
||||||
bne @L1 ; Jump if vector font
|
bne @L1 ; Jump if vector font
|
||||||
|
@ -37,7 +37,7 @@ Text := ptr3
|
||||||
; Return the width of the string for the bitmap font
|
; Return the width of the string for the bitmap font
|
||||||
|
|
||||||
ldy _tgi_charwidth
|
ldy _tgi_charwidth
|
||||||
sta ptr1
|
sty ptr1
|
||||||
jsr _strlen
|
jsr _strlen
|
||||||
jsr umul8x16r16
|
jsr umul8x16r16
|
||||||
ldy _tgi_textscalew+2 ; Get rounded scale factor
|
ldy _tgi_textscalew+2 ; Get rounded scale factor
|
||||||
|
|
Loading…
Reference in New Issue
Block a user