mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-15 20:30:11 +00:00
fix off-by-1 displaying game title in action slideshows
This commit is contained in:
parent
8f5f1dbdd8
commit
7c97a5ce79
@ -216,9 +216,9 @@ DrawGameTitleInActionSlideshowHGR
|
||||
sta VTAB
|
||||
lda #0 ; solid horizontal bar character
|
||||
jsr @resetline
|
||||
lda (SAVE),y ; (SAVE) -> game title, Y = 0, so A = title length
|
||||
lda (SAVE),y ; (SAVE) -> game title, Y = 0, so A = title length + 1
|
||||
clc
|
||||
adc #$03
|
||||
adc #$02
|
||||
sta gPathname
|
||||
lda #7 ; top-right rounded corner character
|
||||
jsr @drawline
|
||||
@ -226,8 +226,9 @@ DrawGameTitleInActionSlideshowHGR
|
||||
inc VTAB
|
||||
lda #" "
|
||||
jsr @resetline
|
||||
lda (SAVE),y ; A = title length
|
||||
lda (SAVE),y ; A = title length + 1
|
||||
tay
|
||||
dey
|
||||
- lda (SAVE),y
|
||||
sta gPathname+1,y
|
||||
dey
|
||||
|
Loading…
x
Reference in New Issue
Block a user