From 6fdd4b0837e03f7e10d4b573c4e05c3cb0079b1e Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Wed, 18 Oct 2006 00:20:07 +0000 Subject: 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 --- apps/plugins/star.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'apps') 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: -- cgit v1.2.3