diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
commit | 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (patch) | |
tree | 46b4a9f4650d288bcbe67e92a9138b45c06105fa /apps/plugins/spacerocks.c | |
parent | 2127906384d618e032692becba10aeda1b3e1974 (diff) | |
download | rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.tar.gz rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.zip |
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/spacerocks.c')
-rw-r--r-- | apps/plugins/spacerocks.c | 4 |
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) | |||
2125 | #endif | 2125 | #endif |
2126 | /* universal font */ | 2126 | /* universal font */ |
2127 | rb->lcd_setfont(FONT_SYSFIXED); | 2127 | rb->lcd_setfont(FONT_SYSFIXED); |
2128 | #ifdef HAVE_BACKLIGHT | ||
2128 | /* Turn off backlight timeout */ | 2129 | /* Turn off backlight timeout */ |
2129 | backlight_ignore_timeout(); | 2130 | backlight_ignore_timeout(); |
2131 | #endif | ||
2130 | highscore_load(SCORE_FILE, highscores, NUM_SCORES); | 2132 | highscore_load(SCORE_FILE, highscores, NUM_SCORES); |
2131 | rb->srand(*rb->current_tick); | 2133 | rb->srand(*rb->current_tick); |
2132 | 2134 | ||
@@ -2138,8 +2140,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
2138 | 2140 | ||
2139 | rb->lcd_setfont(FONT_UI); | 2141 | rb->lcd_setfont(FONT_UI); |
2140 | highscore_save(SCORE_FILE, highscores, NUM_SCORES); | 2142 | highscore_save(SCORE_FILE, highscores, NUM_SCORES); |
2143 | #ifdef HAVE_BACKLIGHT | ||
2141 | /* Turn on backlight timeout (revert to settings) */ | 2144 | /* Turn on backlight timeout (revert to settings) */ |
2142 | backlight_use_settings(); | 2145 | backlight_use_settings(); |
2146 | #endif | ||
2143 | 2147 | ||
2144 | return ret; | 2148 | return ret; |
2145 | } | 2149 | } |