summaryrefslogtreecommitdiffstats
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:20:15 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:20:15 -0400
commit9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (patch)
tree46b4a9f4650d288bcbe67e92a9138b45c06105fa /apps/plugins/brickmania.c
parent2127906384d618e032692becba10aeda1b3e1974 (diff)
downloadrockbox-9be5bc4cf0.tar.gz
rockbox-9be5bc4cf0.zip
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index dd46f98b8e..5764c6869d 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -2526,9 +2526,10 @@ enum plugin_status plugin_start(const void* parameter)
#if LCD_DEPTH > 1
rb->lcd_set_backdrop(NULL);
#endif
+#ifdef HAVE_BACKLIGHT
/* Turn off backlight timeout */
backlight_ignore_timeout();
-
+#endif
/* now go ahead and have fun! */
rb->srand( *rb->current_tick );
brickmania_loadgame();
@@ -2557,8 +2558,9 @@ enum plugin_status plugin_start(const void* parameter)
configfile_save(CONFIG_FILE_NAME,config,1,0);
/* Restore user's original backlight setting */
rb->lcd_setfont(FONT_UI);
+#ifdef HAVE_BACKLIGHT
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings();
-
+#endif
return PLUGIN_OK;
}