summaryrefslogtreecommitdiff
path: root/apps/plugins/plasma.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 23:00:29 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 23:00:29 -0500
commit97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch)
treeb032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/plasma.c
parent3745c813f924b12232c4f37610aecd23fe5654b8 (diff)
downloadrockbox-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/plasma.c')
-rw-r--r--apps/plugins/plasma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index f944d3d775..8da53874e1 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -140,10 +140,10 @@ static void cleanup(void)
140#ifndef HAVE_LCD_COLOR 140#ifndef HAVE_LCD_COLOR
141 grey_release(); 141 grey_release();
142#endif 142#endif
143#ifdef HAVE_BACKLIGHT 143
144 /* Turn on backlight timeout (revert to settings) */ 144 /* Turn on backlight timeout (revert to settings) */
145 backlight_use_settings(); 145 backlight_use_settings();
146#endif 146
147#if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) 147#if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256)
148 rb->lcd_set_mode(LCD_MODE_RGB565); 148 rb->lcd_set_mode(LCD_MODE_RGB565);
149#endif 149#endif
@@ -321,10 +321,10 @@ enum plugin_status plugin_start(const void* parameter)
321#if LCD_DEPTH > 1 321#if LCD_DEPTH > 1
322 rb->lcd_set_backdrop(NULL); 322 rb->lcd_set_backdrop(NULL);
323#endif 323#endif
324#ifdef HAVE_BACKLIGHT 324
325 /* Turn off backlight timeout */ 325 /* Turn off backlight timeout */
326 backlight_ignore_timeout(); 326 backlight_ignore_timeout();
327#endif 327
328#if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) 328#if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256)
329 rb->lcd_set_mode(LCD_MODE_PAL256); 329 rb->lcd_set_mode(LCD_MODE_PAL256);
330#endif 330#endif