Added pixel X reset on newline

This commit is contained in:
jeffman 2017-03-13 13:53:55 -04:00
parent d20ee7a3b2
commit 97be1a635c
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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}