diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
commit | 97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch) | |
tree | b032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/fire.c | |
parent | 3745c813f924b12232c4f37610aecd23fe5654b8 (diff) | |
download | rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.tar.gz rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.zip |
plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions
lessen the ifdef hell
Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3
Diffstat (limited to 'apps/plugins/fire.c')
-rw-r--r-- | apps/plugins/fire.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/fire.c b/apps/plugins/fire.c index f3e6fb35e4..43d10bf920 100644 --- a/apps/plugins/fire.c +++ b/apps/plugins/fire.c | |||
@@ -279,10 +279,9 @@ static void cleanup(void *parameter) | |||
279 | #ifndef HAVE_LCD_COLOR | 279 | #ifndef HAVE_LCD_COLOR |
280 | grey_release(); | 280 | grey_release(); |
281 | #endif | 281 | #endif |
282 | #ifdef HAVE_BACKLIGHT | 282 | |
283 | /* Turn on backlight timeout (revert to settings) */ | 283 | /* Turn on backlight timeout (revert to settings) */ |
284 | backlight_use_settings(); | 284 | backlight_use_settings(); |
285 | #endif | ||
286 | } | 285 | } |
287 | 286 | ||
288 | 287 | ||
@@ -371,10 +370,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
371 | #if LCD_DEPTH > 1 | 370 | #if LCD_DEPTH > 1 |
372 | rb->lcd_set_backdrop(NULL); | 371 | rb->lcd_set_backdrop(NULL); |
373 | #endif | 372 | #endif |
374 | #ifdef HAVE_BACKLIGHT | 373 | |
375 | /* Turn off backlight timeout */ | 374 | /* Turn off backlight timeout */ |
376 | backlight_ignore_timeout(); | 375 | backlight_ignore_timeout(); |
377 | #endif | ||
378 | 376 | ||
379 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) | 377 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) |
380 | rb->lcd_set_mode(LCD_MODE_PAL256); | 378 | rb->lcd_set_mode(LCD_MODE_PAL256); |