summaryrefslogtreecommitdiff
path: root/apps/plugins/minesweeper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/minesweeper.c')
-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 )
399{ 399{
400 int selection, result = MINESWEEPER_QUIT; 400 int selection, result = MINESWEEPER_QUIT;
401 bool menu_quit = false; 401 bool menu_quit = false;
402 402
403 MENUITEM_STRINGLIST(menu, "Minesweeper Menu",NULL,"Play Minesweeper", 403 MENUITEM_STRINGLIST( menu, "Minesweeper Menu", NULL, "Play Minesweeper",
404 "Mine Percentage", "Number of Rows", "Number of Columns", 404 "Mine Percentage", "Number of Rows",
405 "Quit"); 405 "Number of Columns", "Quit" );
406 406
407#ifdef HAVE_LCD_COLOR 407#ifdef HAVE_LCD_COLOR
408 rb->lcd_set_foreground(rb->global_settings->fg_color); 408 rb->lcd_set_foreground( rb->global_settings->fg_color );
409 rb->lcd_set_background(rb->global_settings->bg_color); 409 rb->lcd_set_background( rb->global_settings->bg_color );
410#endif 410#endif
411 411
412 while (!menu_quit) { 412 while( !menu_quit )
413 switch(rb->do_menu(&menu, &selection)) 413 {
414 switch( rb->do_menu( &menu, &selection ) )
414 { 415 {
415 case 0: 416 case 0:
416 result = MINESWEEPER_WIN; /* start playing */ 417 result = MINESWEEPER_WIN; /* start playing */
@@ -418,20 +419,20 @@ enum minesweeper_status menu( void )
418 break; 419 break;
419 420
420 case 1: 421 case 1:
421 rb->set_int("Mine Percentage", "%", UNIT_INT, &p, NULL, 1, 2, 422 rb->set_int( "Mine Percentage", "%", UNIT_INT, &p, NULL,
422 98, NULL ); 423 1, 2, 98, NULL );
423 break; 424 break;
424 425
425 case 2: 426 case 2:
426 rb->set_int("Number of Rows", "", UNIT_INT, &height, NULL, 1, 1, 427 rb->set_int( "Number of Rows", "", UNIT_INT, &height, NULL,
427 MAX_HEIGHT, NULL ); 428 1, 1, MAX_HEIGHT, NULL );
428 break; 429 break;
429 430
430 case 3: 431 case 3:
431 rb->set_int("Number of Columns", "", UNIT_INT, &width, NULL, 1, 1, 432 rb->set_int( "Number of Columns", "", UNIT_INT, &width, NULL,
432 MAX_WIDTH, NULL ); 433 1, 1, MAX_WIDTH, NULL );
433 break; 434 break;
434 435
435 default: 436 default:
436 result = MINESWEEPER_QUIT; /* quit program */ 437 result = MINESWEEPER_QUIT; /* quit program */
437 menu_quit = true; 438 menu_quit = true;