diff --git a/m2-hack.asm b/m2-hack.asm index 1e40d72..d3cc4ea 100644 --- a/m2-hack.asm +++ b/m2-hack.asm @@ -110,11 +110,15 @@ org $80C4F84; bl m2_vwf_entries.c4b2c_clear_right // C980C hacks //--------------------------------------------------------- +// Reset pixel X during a newline +org $80C9CC4 +bl m2_vwf_entries.c980c_resetx_newline + // Custom codes check org $80CA2BC bl m2_vwf_entries.c980c_custom_codes -// Clear pixel X +// Reset pixel X when redrawing the window org $80CA2E6 bl m2_vwf_entries.c980c_resetx diff --git a/m2-vwf-entries.asm b/m2-vwf-entries.asm index af155a9..4b67900 100644 --- a/m2-vwf-entries.asm +++ b/m2-vwf-entries.asm @@ -33,6 +33,15 @@ pop {r1} bl $80C87D0 pop {pc} +//============================================================================== +.c980c_resetx_newline: +push {lr} +strh r0,[r5,#0x2C] +strh r4,[r5,#0x2A] +strh r4,[r5,#2] +pop {pc} + + //============================================================================== .c87d0_clear_entry: push {lr}