summaryrefslogtreecommitdiff
path: root/menu.s68
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-03-09 21:46:31 -0800
committerMichael Pavone <pavone@retrodev.com>2016-03-09 21:46:31 -0800
commitc3bc09092244112f96fac0a2e19bda3d7934f76c (patch)
tree5e5366b755d84fdff09bc16da567020c9ee68ee4 /menu.s68
parent98c4beb8963661b88e6b8def3ca45f87514f1ff4 (diff)
Adjust arrow X positions in menu
Diffstat (limited to 'menu.s68')
-rw-r--r--menu.s6812
1 files changed, 11 insertions, 1 deletions
diff --git a/menu.s68 b/menu.s68
index 29a73fa..d065a8a 100644
--- a/menu.s68
+++ b/menu.s68
@@ -598,6 +598,17 @@ draw_menu:
lsr.w #1, d4
moveq #20, d5
sub.w d4, d5
+ ;calculate left arrow X
+ move.w d5, d4
+ lsl.w #3, d4
+ add.w #(128-24), d4
+ move.w d4, (sprite_list+6).w
+ ;calculate right arrow x
+ move.w d7, d3
+ lsl.w #3, d3
+ add.w d3, d4
+ add.w #32, d4
+ move.w d4, (sprite_list+6+8).w
;restore menu pointer
movea.l a4, a5
.drawloop
@@ -624,7 +635,6 @@ draw_menu:
;y pos
move.w d6, d2
;base attribute
- ;FIXME: Change base attribute to use fixed width font
move.w #$206B, d0
bsr print_string_fixed