diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-02 03:30:05 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-02 03:30:05 +0000 |
commit | 43ffbdb5abf09b986b993925598579f4c8f97d4b (patch) | |
tree | 6beff6c29a3c6fc12de1a7bd296e3372dcae17f8 | |
parent | b115ae3f9e1cf9b1e20addac5d08f94b30e96168 (diff) | |
download | rockbox-43ffbdb5abf09b986b993925598579f4c8f97d4b.tar.gz rockbox-43ffbdb5abf09b986b993925598579f4c8f97d4b.zip |
FS#9742 - hopefully the last of these
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19638 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/credits.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c index 245570e8a2..9a3a01e596 100644 --- a/apps/plugins/credits.c +++ b/apps/plugins/credits.c | |||
@@ -373,6 +373,7 @@ static void roll_credits(void) | |||
373 | 373 | ||
374 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 374 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) |
375 | { | 375 | { |
376 | long finish; | ||
376 | (void)parameter; | 377 | (void)parameter; |
377 | rb = api; | 378 | rb = api; |
378 | 379 | ||
@@ -385,9 +386,12 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
385 | #endif | 386 | #endif |
386 | 387 | ||
387 | /* Show the logo for about 3 secs allowing the user to stop */ | 388 | /* Show the logo for about 3 secs allowing the user to stop */ |
388 | if(!rb->action_userabort(3*HZ)) | 389 | finish = *rb->current_tick + 3*HZ; |
389 | roll_credits(); | 390 | while (*rb->current_tick < finish) |
390 | 391 | if(rb->action_userabort(finish - *rb->current_tick)) | |
392 | break; | ||
393 | roll_credits(); | ||
394 | |||
391 | /* Turn on backlight timeout (revert to settings) */ | 395 | /* Turn on backlight timeout (revert to settings) */ |
392 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ | 396 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ |
393 | 397 | ||