summaryrefslogtreecommitdiff
path: root/mobile/mobile_22_2.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-13 16:38:14 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-13 16:38:14 -0500
commit2ab60fa8a49dfe9e20ebb620471ba4c2ca64a4aa (patch)
treee5a1991206d3bb76c259cc14061993e83651d4bf /mobile/mobile_22_2.asm
parent0197e6f23c0db6baf11aa1e610521f78b6352605 (diff)
menu_coords macro for (x1, y1, x2, y2) order (see issue #440)
Diffstat (limited to 'mobile/mobile_22_2.asm')
-rw-r--r--mobile/mobile_22_2.asm12
1 files changed, 4 insertions, 8 deletions
diff --git a/mobile/mobile_22_2.asm b/mobile/mobile_22_2.asm
index 37b3d60b8..75985bc8c 100644
--- a/mobile/mobile_22_2.asm
+++ b/mobile/mobile_22_2.asm
@@ -911,8 +911,7 @@ Function8b855: ; 8b855
MenuDataHeader_0x8b867: ; 0x8b867
db $40 ; flags
- db 03, 01 ; start coords
- db 13, 18 ; end coords
+ menu_coords 1, 3, 18, 13
dw MenuData2_0x8b870
db 1 ; default option
; 0x8b86f
@@ -1084,13 +1083,11 @@ Function8b9ab: ; 8b9ab
MenuDataHeader_0x8b9ac: ; 0x8b9ac
db $40 ; flags
- db 00, 11 ; start coords
- db 11, 19 ; end coords
+ menu_coords 11, 0, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
MenuDataHeader_0x8b9b1: ; 0x8b9b1
db $40 ; flags
- db 00, 11 ; start coords
- db 07, 19 ; end coords
+ menu_coords 11, 0, SCREEN_WIDTH - 1, 7
dw MenuData2_0x8b9b9
db 1 ; default option
; 0x8b9b9
@@ -1105,8 +1102,7 @@ MenuData2_0x8b9b9: ; 0x8b9b9
MenuDataHeader_0x8b9ca: ; 0x8b9ca
db $40 ; flags
- db 00, 11 ; start coords
- db 11, 19 ; end coords
+ menu_coords 11, 0, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
dw MenuData2_0x8b9d2
db 1 ; default option
; 0x8b9d2