diff options
author | Antoine Cellerier <dionoea@videolan.org> | 2007-06-03 22:00:48 +0000 |
---|---|---|
committer | Antoine Cellerier <dionoea@videolan.org> | 2007-06-03 22:00:48 +0000 |
commit | 7428b79de328dca03274ccfe08d59636eb6f8d51 (patch) | |
tree | 606013e86cad9674f3bb784810e52a85cd83273c /apps | |
parent | ffcc94ea9215a7958799eb22aa3212fdfd15c4e5 (diff) | |
download | rockbox-7428b79de328dca03274ccfe08d59636eb6f8d51.tar.gz rockbox-7428b79de328dca03274ccfe08d59636eb6f8d51.zip |
* minesweeper.c: Cosmetics.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13546 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/minesweeper.c | 35 |
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; |