summaryrefslogtreecommitdiffstats
path: root/apps/menus/display_menu.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-11-26 21:26:22 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-11-26 21:26:22 +0000
commit495115b84a71b900b27c55b899b68e12059434d4 (patch)
tree5514f2d3131bc20a341a020fe6382fd5df9fe532 /apps/menus/display_menu.c
parent5b0d74a7d3329ec3fc5818d9185aba7f29291ca7 (diff)
downloadrockbox-495115b84a71b900b27c55b899b68e12059434d4.tar.gz
rockbox-495115b84a71b900b27c55b899b68e12059434d4.tar.bz2
rockbox-495115b84a71b900b27c55b899b68e12059434d4.zip
Add hardware backlight fading on Gigabeat S with fade up and down options in LCD Settings. USE_BACKLIGHT_CUSTOM_FADING_BOOL is used to specify the setting type needed but leave the fading code itself implementation-defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19237 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/display_menu.c')
-rw-r--r--apps/menus/display_menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index 744a9e9354..488b0ff570 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -92,7 +92,8 @@ MENUITEM_SETTING(backlight_on_button_hold,
#endif
MENUITEM_SETTING(caption_backlight, &global_settings.caption_backlight, NULL);
#if (defined(HAVE_BACKLIGHT_PWM_FADING) && !defined(SIMULATOR)) || \
- defined(USE_BACKLIGHT_SW_FADING)
+ defined(USE_BACKLIGHT_SW_FADING) || \
+ defined(USE_BACKLIGHT_CUSTOM_FADING_BOOL)
MENUITEM_SETTING(backlight_fade_in, &global_settings.backlight_fade_in, NULL);
MENUITEM_SETTING(backlight_fade_out, &global_settings.backlight_fade_out, NULL);
#endif
@@ -132,7 +133,8 @@ MAKE_MENU(lcd_settings,ID2P(LANG_LCD_MENU),
# endif
,&caption_backlight
#if (defined(HAVE_BACKLIGHT_PWM_FADING) && !defined(SIMULATOR)) || \
- defined(USE_BACKLIGHT_SW_FADING)
+ defined(USE_BACKLIGHT_SW_FADING) || \
+ defined(USE_BACKLIGHT_CUSTOM_FADING_BOOL)
,&backlight_fade_in, &backlight_fade_out
#endif
,&bl_filter_first_keypress