Whitespace cleanup, dfx menus

This commit is contained in:
simon.kagstrom 2009-05-10 07:14:02 +00:00
parent 8da0b00534
commit 861f885609

View File

@ -93,19 +93,19 @@ void gui_handle_events (void)
} }
static const char *main_menu_messages[] = { static const char *main_menu_messages[] = {
/*02*/ "File", /*02*/ "Floppy",
/*03*/ "^|Insert|Start", /*03*/ "^|df0|df1|df2|df3",
/*04*/ "States", /*04*/ "States",
/*05*/ "^|Load|Save|Delete", /*05*/ "^|Load|Save|Delete",
/*06*/ "Keyboard", /*06*/ "Keyboard",
/*07*/ "^|Type|Macro|Bind", /*07*/ "^|Type|Macro|Bind",
/*08*/ "#1-------------------------------------", /*08*/ "#1-------------------------------------",
/*09*/ "Reset the C=64", /*09*/ "Reset the C=64",
/*10*/ "Networking", /*10*/ "Networking",
/*11*/ "Options", /*11*/ "Options",
/*12*/ "Advanced Options", /*12*/ "Advanced Options",
/*13*/ "Help", /*13*/ "Help",
/*15*/ "Quit", /*15*/ "Quit",
NULL NULL
}; };
@ -116,15 +116,17 @@ void gui_display(int shortcut)
int submenus[3]; int submenus[3];
int opt; int opt;
printf("Initing gui with %p\n", screen); printf("Initing gui with %d\n", shortcut);
printf("Al-mibb: Gui is display!\n"); printf("Al-mibb: Gui is display!\n");
if (!is_inited) if (!is_inited)
{ {
menu_init(screen); menu_init(screen);
is_inited = 1; is_inited = 1;
} }
opt = menu_select_title("Main menu", main_menu_messages, submenus); opt = menu_select_title("Main menu", main_menu_messages, submenus);
if (opt == 12)
uae_quit();
} }
void gui_message (const char *format,...) void gui_message (const char *format,...)