aboutsummaryrefslogtreecommitdiff
path: root/Source/Menu.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-06-27 00:58:12 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-06-27 00:58:12 +0200
commitf9f9924566e82aae02817a2fbc7962764f5418c3 (patch)
tree8f015dab806edb736cce9ca596d3b9849c529231 /Source/Menu.c
parentd1f55e8b45df2dfd84bdde3e2566ef14c9ba40f1 (diff)
downloadairport-f9f9924566e82aae02817a2fbc7962764f5418c3.tar.gz
* Reduced tileset sprite size from 64x64 to 64x48.
* Modified rendering functions to keep up with this size reduction. * Sprites in TIM have been reordered inside VRAM. * Other minor changes.
Diffstat (limited to 'Source/Menu.c')
-rw-r--r--Source/Menu.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/Menu.c b/Source/Menu.c
index d83b92f..4d3abf7 100644
--- a/Source/Menu.c
+++ b/Source/Menu.c
@@ -19,13 +19,15 @@
typedef enum
{
PLAY_OPTIONS_LEVEL = 0,
- ONE_TWO_PLAYERS_LEVEL
+ ONE_TWO_PLAYERS_LEVEL,
+ OPTIONS_LEVEL
}MainMenuLevel;
enum
{
MAIN_MENU_PLAY_OPTIONS_LEVEL_BUTTONS = 2,
- MAIN_MENU_ONE_TWO_PLAYERS_LEVEL_BUTTONS = 2
+ MAIN_MENU_ONE_TWO_PLAYERS_LEVEL_BUTTONS = 2,
+ MAIN_MENU_OPTIONS_LEVEL_BUTTONS = 1
};
typedef enum
@@ -260,10 +262,10 @@ void MainMenu(void)
GfxSetGlobalLuminance(NORMAL_LUMINANCE);
while(1)
- {
- while(GfxIsGPUBusy() == true);
-
+ {
MainMenuButtonHandler();
+
+ while(GfxIsGPUBusy() == true);
switch(menuLevel)
{