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/mazezam.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/mazezam.c')
-rw-r--r-- | apps/plugins/mazezam.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/mazezam.c b/apps/plugins/mazezam.c index 423b09288d..cd7b6e22a8 100644 --- a/apps/plugins/mazezam.c +++ b/apps/plugins/mazezam.c | |||
@@ -256,7 +256,9 @@ static void store_lcd_settings(void) | |||
256 | ******************************************************************************/ | 256 | ******************************************************************************/ |
257 | static void restore_lcd_settings(void) { | 257 | static void restore_lcd_settings(void) { |
258 | /* Turn on backlight timeout (revert to settings) */ | 258 | /* Turn on backlight timeout (revert to settings) */ |
259 | #ifdef HAVE_BACKLIGHT | ||
259 | backlight_use_settings(); | 260 | backlight_use_settings(); |
261 | #endif | ||
260 | 262 | ||
261 | /* Restore the old settings */ | 263 | /* Restore the old settings */ |
262 | #if LCD_DEPTH > 1 | 264 | #if LCD_DEPTH > 1 |
@@ -270,9 +272,10 @@ static void restore_lcd_settings(void) { | |||
270 | * Adjust the LCD settings to suit MazezaM levels | 272 | * Adjust the LCD settings to suit MazezaM levels |
271 | ******************************************************************************/ | 273 | ******************************************************************************/ |
272 | static void plugin_lcd_settings(void) { | 274 | static void plugin_lcd_settings(void) { |
275 | #ifdef HAVE_BACKLIGHT | ||
273 | /* Turn off backlight timeout */ | 276 | /* Turn off backlight timeout */ |
274 | backlight_ignore_timeout(); | 277 | backlight_ignore_timeout(); |
275 | 278 | #endif | |
276 | /* Set the new settings */ | 279 | /* Set the new settings */ |
277 | #ifdef HAVE_LCD_COLOR | 280 | #ifdef HAVE_LCD_COLOR |
278 | rb->lcd_set_background(MAZEZAM_BG_COLOR); | 281 | rb->lcd_set_background(MAZEZAM_BG_COLOR); |