summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-03-14 17:19:27 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-03-14 17:19:27 +0000
commit7fe66302ad2a0e3506ac00e8ca470ea15148717d (patch)
tree12c912fb667f7251ee38d318c9a5ee54502d724e /apps
parent18b84eeb516672a75d0b740d625407ba246afb05 (diff)
downloadrockbox-7fe66302ad2a0e3506ac00e8ca470ea15148717d.tar.gz
rockbox-7fe66302ad2a0e3506ac00e8ca470ea15148717d.tar.bz2
rockbox-7fe66302ad2a0e3506ac00e8ca470ea15148717d.zip
Always restore backlight timer when user exits Version screen - fix FS#6811
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12764 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/credits.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c
index 695918b71d..8f619c40ba 100644
--- a/apps/plugins/credits.c
+++ b/apps/plugins/credits.c
@@ -35,6 +35,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
(void)parameter;
rb = api;
+ /* Turn off backlight timeout */
rb->backlight_set_timeout(1);
rb->show_logo();
@@ -42,16 +43,19 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->lcd_double_height(false);
#endif
+ /* Show the logo for about 1.5 secs allowing the user to stop */
for (j = 0; j < 15; j++) {
rb->sleep((HZ*2)/10);
btn = rb->button_get(false);
if (btn != BUTTON_NONE && !(btn & BUTTON_REL))
- return PLUGIN_OK;
+ goto EndOfProc;
}
roll_credits();
+EndOfProc:
+ /* Restore the values we've changed */
rb->backlight_set_timeout(rb->global_settings->backlight_timeout);
return PLUGIN_OK;