core, fix H32 mode in fast renderer

This commit is contained in:
kub 2023-11-23 20:56:47 +01:00
parent 9215679134
commit 96a972dcec
2 changed files with 11 additions and 7 deletions

View file

@ -428,6 +428,7 @@ DrawLayerFull:
ldr r11, [r11, #OFS_EST_Draw2FB]
sub r4, r9, r4, lsl #24
tst r7, #PDRAW_BORDER_32 @ H32 border mode?
tstne r7, #PDRAW_32_COLS
addne r11, r11, #32
mov r4, r4, asr #24
mov r7, #328*8
@ -609,6 +610,7 @@ DrawTilesFromCacheF:
ldr r11,[r1, #OFS_EST_Draw2Start]
ldr r2, [r0], #4 @ read y offset
tst r7, #PDRAW_BORDER_32 @ H32 border mode?
tstne r7, #PDRAW_32_COLS
addne r4, r4, #32
mov r7, #328
mla r2, r7, r2, r4
@ -717,6 +719,7 @@ DrawWindowFull:
and r12, r12, #0xf800
mov r5, r5, lsl #6 @ nametab_step
tst r7, #PDRAW_BORDER_32
tstne r7, #PDRAW_32_COLS
addne r11, r11, #32 @ center screen in H32 mode
0: and r4, r0, #0xff
@ -945,6 +948,7 @@ DrawSpriteFull:
ldr r2, [r1, #OFS_EST_Draw2Start]
ldr r10, [r1, #OFS_EST_PicoMem_vram]
tst r0, #PDRAW_BORDER_32 @ H32 border mode?
tstne r0, #PDRAW_32_COLS
addne r11, r11, #32
sub r12, r12, r2, lsl #3
mov r0, #328