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/rocklife.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/rocklife.c')
-rw-r--r-- | apps/plugins/rocklife.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/rocklife.c b/apps/plugins/rocklife.c index 99297abd0f..bed947cc71 100644 --- a/apps/plugins/rocklife.c +++ b/apps/plugins/rocklife.c | |||
@@ -474,9 +474,8 @@ enum plugin_status plugin_start(const void* parameter) | |||
474 | char *ptemp; | 474 | char *ptemp; |
475 | (void)(parameter); | 475 | (void)(parameter); |
476 | 476 | ||
477 | #ifdef HAVE_BACKLIGHT | ||
478 | backlight_ignore_timeout(); | 477 | backlight_ignore_timeout(); |
479 | #endif | 478 | |
480 | #if LCD_DEPTH > 1 | 479 | #if LCD_DEPTH > 1 |
481 | rb->lcd_set_backdrop(NULL); | 480 | rb->lcd_set_backdrop(NULL); |
482 | #ifdef HAVE_LCD_COLOR | 481 | #ifdef HAVE_LCD_COLOR |
@@ -580,8 +579,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
580 | rb->yield(); | 579 | rb->yield(); |
581 | } | 580 | } |
582 | 581 | ||
583 | #ifdef HAVE_BACKLIGHT | ||
584 | backlight_use_settings(); | 582 | backlight_use_settings(); |
585 | #endif | 583 | |
586 | return usb? PLUGIN_USB_CONNECTED: PLUGIN_OK; | 584 | return usb? PLUGIN_USB_CONNECTED: PLUGIN_OK; |
587 | } | 585 | } |