summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-02 03:30:05 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-02 03:30:05 +0000
commit43ffbdb5abf09b986b993925598579f4c8f97d4b (patch)
tree6beff6c29a3c6fc12de1a7bd296e3372dcae17f8
parentb115ae3f9e1cf9b1e20addac5d08f94b30e96168 (diff)
downloadrockbox-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.c10
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)
enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
{
+ long finish;
(void)parameter;
rb = api;
@@ -385,9 +386,12 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
#endif
/* Show the logo for about 3 secs allowing the user to stop */
- if(!rb->action_userabort(3*HZ))
- roll_credits();
-
+ finish = *rb->current_tick + 3*HZ;
+ while (*rb->current_tick < finish)
+ if(rb->action_userabort(finish - *rb->current_tick))
+ break;
+ roll_credits();
+
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings(rb); /* backlight control in lib/helper.c */