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/demystify.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/demystify.c')
-rw-r--r-- | apps/plugins/demystify.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/demystify.c b/apps/plugins/demystify.c index a389018c4e..74537e94f8 100644 --- a/apps/plugins/demystify.c +++ b/apps/plugins/demystify.c | |||
@@ -262,10 +262,12 @@ static void polygons_draw(struct polygon_fifo * polygons, struct screen * displa | |||
262 | 262 | ||
263 | static void cleanup(void) | 263 | static void cleanup(void) |
264 | { | 264 | { |
265 | #ifdef HAVE_BACKLIGHT | ||
265 | backlight_use_settings(); | 266 | backlight_use_settings(); |
266 | #ifdef HAVE_REMOTE_LCD | 267 | #ifdef HAVE_REMOTE_LCD |
267 | remote_backlight_use_settings(); | 268 | remote_backlight_use_settings(); |
268 | #endif | 269 | #endif |
270 | #endif | ||
269 | } | 271 | } |
270 | 272 | ||
271 | #ifdef HAVE_LCD_COLOR | 273 | #ifdef HAVE_LCD_COLOR |
@@ -436,10 +438,12 @@ enum plugin_status plugin_start(const void* parameter) | |||
436 | #if LCD_DEPTH > 1 | 438 | #if LCD_DEPTH > 1 |
437 | rb->lcd_set_backdrop(NULL); | 439 | rb->lcd_set_backdrop(NULL); |
438 | #endif | 440 | #endif |
441 | #ifdef HAVE_BACKLIGHT | ||
439 | backlight_ignore_timeout(); | 442 | backlight_ignore_timeout(); |
440 | #ifdef HAVE_REMOTE_LCD | 443 | #ifdef HAVE_REMOTE_LCD |
441 | remote_backlight_ignore_timeout(); | 444 | remote_backlight_ignore_timeout(); |
442 | #endif | 445 | #endif |
446 | #endif | ||
443 | ret = plugin_main(); | 447 | ret = plugin_main(); |
444 | 448 | ||
445 | return ret; | 449 | return ret; |