diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:14:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:17:19 -0400 |
commit | a3398a21435045fb6af1af14cc5638fd0cb52119 (patch) | |
tree | 701d1f73cc89742ea4ae21d11a60f2f029284099 /apps/plugins/random_folder_advance_config.c | |
parent | 5dbb7576700fad81d6ab722b96620fdbbf462be4 (diff) | |
download | rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.tar.gz rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.zip |
plugins: Fix the builds for targets lacking HAVE_BACKLIGHT
Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
Diffstat (limited to 'apps/plugins/random_folder_advance_config.c')
-rw-r--r-- | apps/plugins/random_folder_advance_config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index 68440e4602..c9dce0223b 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c | |||
@@ -569,10 +569,12 @@ static enum plugin_status main_menu(void) | |||
569 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 569 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
570 | rb->cpu_boost(false); | 570 | rb->cpu_boost(false); |
571 | #endif | 571 | #endif |
572 | #ifdef HAVE_BACKLIGHT | ||
572 | #ifdef HAVE_REMOTE_LCD | 573 | #ifdef HAVE_REMOTE_LCD |
573 | rb->remote_backlight_on(); | 574 | rb->remote_backlight_on(); |
574 | #endif | 575 | #endif |
575 | rb->backlight_on(); | 576 | rb->backlight_on(); |
577 | #endif | ||
576 | break; | 578 | break; |
577 | case 1: | 579 | case 1: |
578 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 580 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
@@ -583,10 +585,12 @@ static enum plugin_status main_menu(void) | |||
583 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 585 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
584 | rb->cpu_boost(false); | 586 | rb->cpu_boost(false); |
585 | #endif | 587 | #endif |
588 | #ifdef HAVE_BACKLIGHT | ||
586 | #ifdef HAVE_REMOTE_LCD | 589 | #ifdef HAVE_REMOTE_LCD |
587 | rb->remote_backlight_on(); | 590 | rb->remote_backlight_on(); |
588 | #endif | 591 | #endif |
589 | rb->backlight_on(); | 592 | rb->backlight_on(); |
593 | #endif | ||
590 | break; | 594 | break; |
591 | case 2: /* export to textfile */ | 595 | case 2: /* export to textfile */ |
592 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 596 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
@@ -596,10 +600,12 @@ static enum plugin_status main_menu(void) | |||
596 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 600 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
597 | rb->cpu_boost(false); | 601 | rb->cpu_boost(false); |
598 | #endif | 602 | #endif |
603 | #ifdef HAVE_BACKLIGHT | ||
599 | #ifdef HAVE_REMOTE_LCD | 604 | #ifdef HAVE_REMOTE_LCD |
600 | rb->remote_backlight_on(); | 605 | rb->remote_backlight_on(); |
601 | #endif | 606 | #endif |
602 | rb->backlight_on(); | 607 | rb->backlight_on(); |
608 | #endif | ||
603 | break; | 609 | break; |
604 | case 3: /* import from textfile */ | 610 | case 3: /* import from textfile */ |
605 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 611 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
@@ -609,10 +615,12 @@ static enum plugin_status main_menu(void) | |||
609 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 615 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
610 | rb->cpu_boost(false); | 616 | rb->cpu_boost(false); |
611 | #endif | 617 | #endif |
618 | #ifdef HAVE_BACKLIGHT | ||
612 | #ifdef HAVE_REMOTE_LCD | 619 | #ifdef HAVE_REMOTE_LCD |
613 | rb->remote_backlight_on(); | 620 | rb->remote_backlight_on(); |
614 | #endif | 621 | #endif |
615 | rb->backlight_on(); | 622 | rb->backlight_on(); |
623 | #endif | ||
616 | break; | 624 | break; |
617 | case 4: | 625 | case 4: |
618 | if (!start_shuffled_play()) | 626 | if (!start_shuffled_play()) |