FS#9742 - hopefully the last of these
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19638 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b115ae3f9e
commit
43ffbdb5ab
1 changed files with 7 additions and 3 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue