summaryrefslogtreecommitdiff
path: root/apps/plugins/fireworks.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/fireworks.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/fireworks.c')
-rw-r--r--apps/plugins/fireworks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/fireworks.c b/apps/plugins/fireworks.c
index b7dad0d8ba..febd093e3f 100644
--- a/apps/plugins/fireworks.c
+++ b/apps/plugins/fireworks.c
@@ -358,9 +358,9 @@ enum plugin_status plugin_start(const void* parameter)
358 358
359 /* set everything up.. no BL timeout, no backdrop, 359 /* set everything up.. no BL timeout, no backdrop,
360 white-text-on-black-background. */ 360 white-text-on-black-background. */
361#ifdef HAVE_BACKLIGHT 361
362 backlight_ignore_timeout(); 362 backlight_ignore_timeout();
363#endif 363
364#if LCD_DEPTH > 1 364#if LCD_DEPTH > 1
365 rb->lcd_set_backdrop(NULL); 365 rb->lcd_set_backdrop(NULL);
366 rb->lcd_set_background(LCD_BLACK); 366 rb->lcd_set_background(LCD_BLACK);
@@ -524,10 +524,10 @@ enum plugin_status plugin_start(const void* parameter)
524 break; 524 break;
525 } 525 }
526 } 526 }
527#ifdef HAVE_BACKLIGHT 527
528 /* Turn on backlight timeout (revert to settings) */ 528 /* Turn on backlight timeout (revert to settings) */
529 backlight_use_settings(); 529 backlight_use_settings();
530#endif 530
531#ifdef HAVE_ADJUSTABLE_CPU_FREQ 531#ifdef HAVE_ADJUSTABLE_CPU_FREQ
532 rb->cpu_boost(false); 532 rb->cpu_boost(false);
533#endif 533#endif