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/brickmania.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/brickmania.c')
-rw-r--r-- | apps/plugins/brickmania.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 3e7ea27441..de65ce69e1 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -2533,10 +2533,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
2533 | #if LCD_DEPTH > 1 | 2533 | #if LCD_DEPTH > 1 |
2534 | rb->lcd_set_backdrop(NULL); | 2534 | rb->lcd_set_backdrop(NULL); |
2535 | #endif | 2535 | #endif |
2536 | #ifdef HAVE_BACKLIGHT | 2536 | |
2537 | /* Turn off backlight timeout */ | 2537 | /* Turn off backlight timeout */ |
2538 | backlight_ignore_timeout(); | 2538 | backlight_ignore_timeout(); |
2539 | #endif | 2539 | |
2540 | /* now go ahead and have fun! */ | 2540 | /* now go ahead and have fun! */ |
2541 | rb->srand( *rb->current_tick ); | 2541 | rb->srand( *rb->current_tick ); |
2542 | brickmania_loadgame(); | 2542 | brickmania_loadgame(); |
@@ -2565,9 +2565,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
2565 | configfile_save(CONFIG_FILE_NAME,config,1,0); | 2565 | configfile_save(CONFIG_FILE_NAME,config,1,0); |
2566 | /* Restore user's original backlight setting */ | 2566 | /* Restore user's original backlight setting */ |
2567 | rb->lcd_setfont(FONT_UI); | 2567 | rb->lcd_setfont(FONT_UI); |
2568 | #ifdef HAVE_BACKLIGHT | 2568 | |
2569 | /* Turn on backlight timeout (revert to settings) */ | 2569 | /* Turn on backlight timeout (revert to settings) */ |
2570 | backlight_use_settings(); | 2570 | backlight_use_settings(); |
2571 | #endif | 2571 | |
2572 | return PLUGIN_OK; | 2572 | return PLUGIN_OK; |
2573 | } | 2573 | } |