summaryrefslogtreecommitdiff
path: root/apps/plugins/credits.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:14:32 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:17:19 -0400
commita3398a21435045fb6af1af14cc5638fd0cb52119 (patch)
tree701d1f73cc89742ea4ae21d11a60f2f029284099 /apps/plugins/credits.c
parent5dbb7576700fad81d6ab722b96620fdbbf462be4 (diff)
downloadrockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.tar.gz
rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.zip
plugins: Fix the builds for targets lacking HAVE_BACKLIGHT
Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
Diffstat (limited to 'apps/plugins/credits.c')
-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 593b54277e..3374a33415 100644
--- a/apps/plugins/credits.c
+++ b/apps/plugins/credits.c
@@ -303,17 +303,21 @@ enum plugin_status plugin_start(const void* parameter)
303{ 303{
304 (void)parameter; 304 (void)parameter;
305 305
306#ifdef HAVE_BACKLIGHT
306 /* Turn off backlight timeout */ 307 /* Turn off backlight timeout */
307 backlight_ignore_timeout(); 308 backlight_ignore_timeout();
309#endif
308 310
309 rb->show_logo(); 311 rb->show_logo();
310 312
311 /* Show the logo for about 3 secs allowing the user to stop */ 313 /* Show the logo for about 3 secs allowing the user to stop */
312 if(!rb->action_userabort(3*HZ)) 314 if(!rb->action_userabort(3*HZ))
313 roll_credits(); 315 roll_credits();
314 316
317#ifdef HAVE_BACKLIGHT
315 /* Turn on backlight timeout (revert to settings) */ 318 /* Turn on backlight timeout (revert to settings) */
316 backlight_use_settings(); 319 backlight_use_settings();
320#endif
317 321
318 return PLUGIN_OK; 322 return PLUGIN_OK;
319} 323}