|
@ -21,7 +21,7 @@ extern game_descriptor_t _game_descriptors_start__[]; |
|
|
extern game_descriptor_t _game_descriptors_end__[]; |
|
|
extern game_descriptor_t _game_descriptors_end__[]; |
|
|
|
|
|
|
|
|
// defines
|
|
|
// defines
|
|
|
#define MENU_ITEM_MAX (((unsigned int)_game_descriptors_end__ - (unsigned int)_game_descriptors_start__)/sizeof(game_descriptor_t)) |
|
|
#define MENU_ITEM_MAX ((uint8_t)(((size_t)_game_descriptors_end__ - (size_t)_game_descriptors_start__) / sizeof(game_descriptor_t))) |
|
|
|
|
|
|
|
|
#define MENU_WIDTH_ICON 8 |
|
|
#define MENU_WIDTH_ICON 8 |
|
|
#define MENU_HEIGHT_ICON 8 |
|
|
#define MENU_HEIGHT_ICON 8 |
|
@ -71,7 +71,6 @@ void menu() |
|
|
wait(MENU_WAIT_CHATTER); |
|
|
wait(MENU_WAIT_CHATTER); |
|
|
|
|
|
|
|
|
// call corresponding function
|
|
|
// call corresponding function
|
|
|
|
|
|
|
|
|
_game_descriptors_start__[miSelection].run(); |
|
|
_game_descriptors_start__[miSelection].run(); |
|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
@ -214,7 +213,7 @@ void menu_animate(uint8_t miInitial, menu_direction_t direction) |
|
|
|
|
|
|
|
|
// wait between the frames so that the animation can be seen
|
|
|
// wait between the frames so that the animation can be seen
|
|
|
wait(nWait); |
|
|
wait(nWait); |
|
|
// animation speed can be throtteled
|
|
|
// animation speed can be throttled
|
|
|
nWait += MENU_WAIT_INCREMENT; |
|
|
nWait += MENU_WAIT_INCREMENT; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|