From 495115b84a71b900b27c55b899b68e12059434d4 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 26 Nov 2008 21:26:22 +0000 Subject: 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 --- apps/menus/display_menu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/menus') 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 -- cgit v1.2.3