diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-09-06 22:32:46 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-09-06 22:32:46 +0000 |
commit | cc4541f08652f3ef7fbddab431fdb9445c659959 (patch) | |
tree | 67c3b0524ca444df158287f6f3dfde7652b4468d | |
parent | ad479ba40b71624e5a874f54388658a7a7a1eccb (diff) | |
download | rockbox-cc4541f08652f3ef7fbddab431fdb9445c659959.tar.gz rockbox-cc4541f08652f3ef7fbddab431fdb9445c659959.zip |
Credits: better counter when scrolling manually
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14629 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/credits.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c index 7970d2913b..64aaddb68f 100644 --- a/apps/plugins/credits.c +++ b/apps/plugins/credits.c | |||
@@ -142,7 +142,7 @@ void roll_credits(void) | |||
142 | int name_w, name_h, name_targetpos=1, font_h; | 142 | int name_w, name_h, name_targetpos=1, font_h; |
143 | int credits_w, credits_pos; | 143 | int credits_w, credits_pos; |
144 | int numnames = (sizeof(credits)/sizeof(char*)); | 144 | int numnames = (sizeof(credits)/sizeof(char*)); |
145 | char name[40], elapsednames[20]; | 145 | char name[40], elapsednames[32]; |
146 | int action = ACTION_NONE; | 146 | int action = ACTION_NONE; |
147 | 147 | ||
148 | /* control if scrolling is automatic (with animation) or manual */ | 148 | /* control if scrolling is automatic (with animation) or manual */ |
@@ -310,7 +310,8 @@ void roll_credits(void) | |||
310 | { | 310 | { |
311 | rb->lcd_clear_display(); | 311 | rb->lcd_clear_display(); |
312 | rb->snprintf(elapsednames, sizeof(elapsednames), | 312 | rb->snprintf(elapsednames, sizeof(elapsednames), |
313 | "[Credits] %d/%d", j+NUM_VISIBLE_LINES, numnames); | 313 | "[Credits] %d-%d/%d", j+1, |
314 | j+NUM_VISIBLE_LINES, numnames); | ||
314 | rb->lcd_getstringsize(elapsednames, &credits_w, NULL); | 315 | rb->lcd_getstringsize(elapsednames, &credits_w, NULL); |
315 | rb->lcd_putsxy(CREDITS_TARGETPOS, 0, elapsednames); | 316 | rb->lcd_putsxy(CREDITS_TARGETPOS, 0, elapsednames); |
316 | 317 | ||