From 3d692070f797b740e4c9ff3229f3f94020d2ca9c Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Wed, 7 Oct 2015 18:30:49 -0700 Subject: [PATCH] add menu cursor dimension data --- asm/data2.s | 14 +++++++++++++- asm/text_renderer.s | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/asm/data2.s b/asm/data2.s index c28f270f3..5d7d8814a 100644 --- a/asm/data2.s +++ b/asm/data2.s @@ -111,4 +111,16 @@ gFontInfos: @ 82EA590 font_info Font8Func+1, 5, 8, 0, 0, 2, 3, 1 font_info 0, 8, 8, 0, 0, 1, 15, 2 - .incbin "base_emerald.gba", 0x2ea608 +gMenuCursorDimensions: @ 82EA608 + .byte 8, 12 + .byte 8, 15 + .byte 8, 14 + .byte 8, 14 + .byte 8, 14 + .byte 8, 14 + .byte 8, 16 + .byte 8, 15 + .byte 8, 8 + .byte 0, 0 + + .incbin "base_emerald.gba", 0x2ea61C diff --git a/asm/text_renderer.s b/asm/text_renderer.s index 3e62b0d1e..a03e77a3b 100644 --- a/asm/text_renderer.s +++ b/asm/text_renderer.s @@ -4076,7 +4076,7 @@ GetMenuCursorDimensionByFont: @ 8006460 lsls r0, 24 lsls r1, 24 lsrs r1, 24 - ldr r2, =0x082ea608 + ldr r2, =gMenuCursorDimensions lsrs r0, 23 adds r1, r0 adds r1, r2