mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Fix calculation of text width for bitmap fonts.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5829 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
60a47704d4
commit
f1d8210450
@ -36,11 +36,8 @@ 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
|
|
||||||
sty ptr1
|
|
||||||
jsr _strlen
|
jsr _strlen
|
||||||
jsr umul8x16r16
|
ldy _tgi_charwidth+1
|
||||||
ldy _tgi_textscalew+2 ; Get rounded scale factor
|
|
||||||
sty ptr1
|
sty ptr1
|
||||||
jmp umul8x16r16
|
jmp umul8x16r16
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user