summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2007-06-03 22:00:48 +0000
committerAntoine Cellerier <dionoea@videolan.org>2007-06-03 22:00:48 +0000
commit7428b79de328dca03274ccfe08d59636eb6f8d51 (patch)
tree606013e86cad9674f3bb784810e52a85cd83273c
parentffcc94ea9215a7958799eb22aa3212fdfd15c4e5 (diff)
* minesweeper.c: Cosmetics.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13546 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/minesweeper.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c
index 31d699501d..721152a788 100644
--- a/apps/plugins/minesweeper.c
+++ b/apps/plugins/minesweeper.c
@@ -399,18 +399,19 @@ enum minesweeper_status menu( void )
{
int selection, result = MINESWEEPER_QUIT;
bool menu_quit = false;
-
- MENUITEM_STRINGLIST(menu, "Minesweeper Menu",NULL,"Play Minesweeper",
- "Mine Percentage", "Number of Rows", "Number of Columns",
- "Quit");
-
+
+ MENUITEM_STRINGLIST( menu, "Minesweeper Menu", NULL, "Play Minesweeper",
+ "Mine Percentage", "Number of Rows",
+ "Number of Columns", "Quit" );
+
#ifdef HAVE_LCD_COLOR
- rb->lcd_set_foreground(rb->global_settings->fg_color);
- rb->lcd_set_background(rb->global_settings->bg_color);
+ rb->lcd_set_foreground( rb->global_settings->fg_color );
+ rb->lcd_set_background( rb->global_settings->bg_color );
#endif
- while (!menu_quit) {
- switch(rb->do_menu(&menu, &selection))
+ while( !menu_quit )
+ {
+ switch( rb->do_menu( &menu, &selection ) )
{
case 0:
result = MINESWEEPER_WIN; /* start playing */
@@ -418,20 +419,20 @@ enum minesweeper_status menu( void )
break;
case 1:
- rb->set_int("Mine Percentage", "%", UNIT_INT, &p, NULL, 1, 2,
- 98, NULL );
+ rb->set_int( "Mine Percentage", "%", UNIT_INT, &p, NULL,
+ 1, 2, 98, NULL );
break;
case 2:
- rb->set_int("Number of Rows", "", UNIT_INT, &height, NULL, 1, 1,
- MAX_HEIGHT, NULL );
+ rb->set_int( "Number of Rows", "", UNIT_INT, &height, NULL,
+ 1, 1, MAX_HEIGHT, NULL );
break;
-
+
case 3:
- rb->set_int("Number of Columns", "", UNIT_INT, &width, NULL, 1, 1,
- MAX_WIDTH, NULL );
+ rb->set_int( "Number of Columns", "", UNIT_INT, &width, NULL,
+ 1, 1, MAX_WIDTH, NULL );
break;
-
+
default:
result = MINESWEEPER_QUIT; /* quit program */
menu_quit = true;