summaryrefslogtreecommitdiffstats
path: root/apps/plugins/spacerocks.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/spacerocks.c
parent2127906384d618e032692becba10aeda1b3e1974 (diff)
downloadrockbox-9be5bc4cf0.tar.gz
rockbox-9be5bc4cf0.tar.bz2
rockbox-9be5bc4cf0.zip
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/spacerocks.c')
-rw-r--r--apps/plugins/spacerocks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c
index 268c55ad35..b366da0d60 100644
--- a/apps/plugins/spacerocks.c
+++ b/apps/plugins/spacerocks.c
@@ -2125,8 +2125,10 @@ enum plugin_status plugin_start(const void* parameter)
#endif
/* universal font */
rb->lcd_setfont(FONT_SYSFIXED);
+#ifdef HAVE_BACKLIGHT
/* Turn off backlight timeout */
backlight_ignore_timeout();
+#endif
highscore_load(SCORE_FILE, highscores, NUM_SCORES);
rb->srand(*rb->current_tick);
@@ -2138,8 +2140,10 @@ enum plugin_status plugin_start(const void* parameter)
rb->lcd_setfont(FONT_UI);
highscore_save(SCORE_FILE, highscores, NUM_SCORES);
+#ifdef HAVE_BACKLIGHT
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings();
+#endif
return ret;
}