summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-10-18 00:20:07 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-10-18 00:20:07 +0000
commit6fdd4b0837e03f7e10d4b573c4e05c3cb0079b1e (patch)
tree888d50d83a956631f8d87c6d8cab2e9ffd340efa /apps
parenta2a7eba72c088c4a9bbb2f3abf14497d3487d1be (diff)
downloadrockbox-6fdd4b0837e03f7e10d4b573c4e05c3cb0079b1e.tar.gz
rockbox-6fdd4b0837e03f7e10d4b573c4e05c3cb0079b1e.zip
Change Star to display levels as 1-20 rather than 0-19 (FS#6126 Thanks to Dave Hooper for the patch). Also add Star button help text for H10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/star.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index ce18f0e704..65409fddb4 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -576,7 +576,7 @@ static void star_display_board_info(void)
576 char str_info[32]; 576 char str_info[32];
577 577
578 rb->snprintf(str_info, sizeof(str_info), "L:%02d S:%02d C:", 578 rb->snprintf(str_info, sizeof(str_info), "L:%02d S:%02d C:",
579 current_level, star_count); 579 current_level+1, star_count );
580 rb->lcd_putsxy(0, label_offset_y, str_info); 580 rb->lcd_putsxy(0, label_offset_y, str_info);
581 581
582#if LCD_DEPTH > 1 582#if LCD_DEPTH > 1
@@ -899,9 +899,10 @@ static int star_choose_level(void)
899 while (true) 899 while (true)
900 { 900 {
901 rb->lcd_clear_display(); 901 rb->lcd_clear_display();
902 /* levels are numbered 0 to (STAR_LEVEL_COUNT-1) */ 902 /* levels are numbered 0 to (STAR_LEVEL_COUNT-1) internally, but
903 * displayed as 1 to STAR_LEVEL_COUNT because it looks nicer */
903 rb->snprintf(str_info, sizeof(str_info), "Level:%02d / %02d", 904 rb->snprintf(str_info, sizeof(str_info), "Level:%02d / %02d",
904 level,(STAR_LEVEL_COUNT-1)); 905 level+1, STAR_LEVEL_COUNT );
905 rb->lcd_putsxy(0, 0, str_info); 906 rb->lcd_putsxy(0, 0, str_info);
906 rb->lcd_update(); 907 rb->lcd_update();
907 key = rb->button_get(true); 908 key = rb->button_get(true);
@@ -1104,6 +1105,13 @@ static int star_menu(void)
1104 "[PWR+DOWN] Prev. level\n" 1105 "[PWR+DOWN] Prev. level\n"
1105 "[PWR+RIGHT] Reset level\n" 1106 "[PWR+RIGHT] Reset level\n"
1106 "[PWR+UP] Next level", true); 1107 "[PWR+UP] Next level", true);
1108#elif CONFIG_KEYPAD == IRIVER_H10_PAD
1109 star_display_text("KEYS\n\n"
1110 "[REW] Toggle Ctl\n"
1111 "[POWER] Exit\n"
1112 "[PLAY+DOWN] Prev. level\n"
1113 "[PLAY+RIGHT] Reset level\n"
1114 "[PLAY+UP] Next level", true);
1107#endif 1115#endif
1108 break; 1116 break;
1109 case 4: 1117 case 4: