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/maze.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/maze.c')
-rw-r--r-- | apps/plugins/maze.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c index 20d5c82495..8c951ebdcc 100644 --- a/apps/plugins/maze.c +++ b/apps/plugins/maze.c | |||
@@ -498,10 +498,8 @@ enum plugin_status plugin_start(const void* parameter) | |||
498 | struct maze maze; | 498 | struct maze maze; |
499 | (void)parameter; | 499 | (void)parameter; |
500 | 500 | ||
501 | #ifdef HAVE_BACKLIGHT | ||
502 | /* Turn off backlight timeout */ | 501 | /* Turn off backlight timeout */ |
503 | backlight_ignore_timeout(); | 502 | backlight_ignore_timeout(); |
504 | #endif | ||
505 | 503 | ||
506 | /* Seed the RNG */ | 504 | /* Seed the RNG */ |
507 | rb->srand(*rb->current_tick); | 505 | rb->srand(*rb->current_tick); |
@@ -591,8 +589,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
591 | #endif | 589 | #endif |
592 | } | 590 | } |
593 | /* Turn on backlight timeout (revert to settings) */ | 591 | /* Turn on backlight timeout (revert to settings) */ |
594 | #ifdef HAVE_BACKLIGHT | ||
595 | backlight_use_settings(); | 592 | backlight_use_settings(); |
596 | #endif | 593 | |
597 | return ((quit == 1) ? PLUGIN_OK : PLUGIN_USB_CONNECTED); | 594 | return ((quit == 1) ? PLUGIN_OK : PLUGIN_USB_CONNECTED); |
598 | } | 595 | } |