summaryrefslogtreecommitdiff
path: root/apps/plugins
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/plugins
parenta2a7eba72c088c4a9bbb2f3abf14497d3487d1be (diff)
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/plugins')
-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)
char str_info[32];
rb->snprintf(str_info, sizeof(str_info), "L:%02d S:%02d C:",
- current_level, star_count);
+ current_level+1, star_count );
rb->lcd_putsxy(0, label_offset_y, str_info);
#if LCD_DEPTH > 1
@@ -899,9 +899,10 @@ static int star_choose_level(void)
while (true)
{
rb->lcd_clear_display();
- /* levels are numbered 0 to (STAR_LEVEL_COUNT-1) */
+ /* levels are numbered 0 to (STAR_LEVEL_COUNT-1) internally, but
+ * displayed as 1 to STAR_LEVEL_COUNT because it looks nicer */
rb->snprintf(str_info, sizeof(str_info), "Level:%02d / %02d",
- level,(STAR_LEVEL_COUNT-1));
+ level+1, STAR_LEVEL_COUNT );
rb->lcd_putsxy(0, 0, str_info);
rb->lcd_update();
key = rb->button_get(true);
@@ -1104,6 +1105,13 @@ static int star_menu(void)
"[PWR+DOWN] Prev. level\n"
"[PWR+RIGHT] Reset level\n"
"[PWR+UP] Next level", true);
+#elif CONFIG_KEYPAD == IRIVER_H10_PAD
+ star_display_text("KEYS\n\n"
+ "[REW] Toggle Ctl\n"
+ "[POWER] Exit\n"
+ "[PLAY+DOWN] Prev. level\n"
+ "[PLAY+RIGHT] Reset level\n"
+ "[PLAY+UP] Next level", true);
#endif
break;
case 4: