diff options
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 4e9ec25d79..099b912efe 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -75,6 +75,7 @@ static bool contrast(void) | |||
75 | MAX_CONTRAST_SETTING ); | 75 | MAX_CONTRAST_SETTING ); |
76 | } | 76 | } |
77 | 77 | ||
78 | #ifdef HAVE_BACKLIGHT | ||
78 | static bool caption_backlight(void) | 79 | static bool caption_backlight(void) |
79 | { | 80 | { |
80 | bool rc = set_bool( str(LANG_CAPTION_BACKLIGHT), | 81 | bool rc = set_bool( str(LANG_CAPTION_BACKLIGHT), |
@@ -82,6 +83,7 @@ static bool caption_backlight(void) | |||
82 | 83 | ||
83 | return rc; | 84 | return rc; |
84 | } | 85 | } |
86 | #endif | ||
85 | 87 | ||
86 | /** | 88 | /** |
87 | * Menu to set icon visibility | 89 | * Menu to set icon visibility |
@@ -569,6 +571,8 @@ static bool useMRB(void) | |||
569 | &global_settings.usemrb, INT, | 571 | &global_settings.usemrb, INT, |
570 | names, 3, NULL ); | 572 | names, 3, NULL ); |
571 | } | 573 | } |
574 | |||
575 | #ifdef HAVE_BACKLIGHT | ||
572 | static bool backlight_on_when_charging(void) | 576 | static bool backlight_on_when_charging(void) |
573 | { | 577 | { |
574 | bool result = set_bool(str(LANG_BACKLIGHT_ON_WHEN_CHARGING), | 578 | bool result = set_bool(str(LANG_BACKLIGHT_ON_WHEN_CHARGING), |
@@ -603,6 +607,7 @@ static bool backlight_timer(void) | |||
603 | return set_option(str(LANG_BACKLIGHT), &global_settings.backlight_timeout, | 607 | return set_option(str(LANG_BACKLIGHT), &global_settings.backlight_timeout, |
604 | INT, names, 19, backlight_set_timeout ); | 608 | INT, names, 19, backlight_set_timeout ); |
605 | } | 609 | } |
610 | #endif /* HAVE_BACKLIGHT */ | ||
606 | 611 | ||
607 | static bool poweroff_idle_timer(void) | 612 | static bool poweroff_idle_timer(void) |
608 | { | 613 | { |
@@ -1141,9 +1146,11 @@ static bool lcd_settings_menu(void) | |||
1141 | bool result; | 1146 | bool result; |
1142 | 1147 | ||
1143 | static const struct menu_item items[] = { | 1148 | static const struct menu_item items[] = { |
1149 | #ifdef HAVE_BACKLIGHT | ||
1144 | { ID2P(LANG_BACKLIGHT), backlight_timer }, | 1150 | { ID2P(LANG_BACKLIGHT), backlight_timer }, |
1145 | { ID2P(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging }, | 1151 | { ID2P(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging }, |
1146 | { ID2P(LANG_CAPTION_BACKLIGHT), caption_backlight }, | 1152 | { ID2P(LANG_CAPTION_BACKLIGHT), caption_backlight }, |
1153 | #endif | ||
1147 | { ID2P(LANG_CONTRAST), contrast }, | 1154 | { ID2P(LANG_CONTRAST), contrast }, |
1148 | #ifdef HAVE_LCD_BITMAP | 1155 | #ifdef HAVE_LCD_BITMAP |
1149 | { ID2P(LANG_INVERT), invert }, | 1156 | { ID2P(LANG_INVERT), invert }, |