diff options
author | Hristo Kovachev <bger@rockbox.org> | 2005-12-22 10:43:36 +0000 |
---|---|---|
committer | Hristo Kovachev <bger@rockbox.org> | 2005-12-22 10:43:36 +0000 |
commit | 9b83c6c4bddca41411d31b8aab17ecc577b37eb4 (patch) | |
tree | 3311cff5a451e4462e02feffdfe4ddc610eeb6e5 /apps/settings_menu.c | |
parent | 9d67765cae62e873c3d004bf9bcb68947f1568f6 (diff) |
Patch No 1387627 by Peter D'Hoye: Backlight Brightness setting for H300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8280 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index fc5d75e431..5338be34a3 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -214,6 +214,16 @@ static bool backlight_fade_out(void) #endif #endif /* CONFIG_BACKLIGHT */ +#ifdef HAVE_BACKLIGHT_BRIGHTNESS +static bool brightness(void) +{ + return set_int( str(LANG_BRIGHTNESS), "", UNIT_INT, + &global_settings.brightness, + backlight_set_brightness, 1, MIN_BRIGHTNESS_SETTING, + MAX_BRIGHTNESS_SETTING, NULL ); +} +#endif + #ifdef HAVE_REMOTE_LCD static bool remote_backlight_timer(void) @@ -1525,6 +1535,9 @@ static bool lcd_settings_menu(void) { ID2P(LANG_BACKLIGHT_FADE_IN), backlight_fade_in }, { ID2P(LANG_BACKLIGHT_FADE_OUT), backlight_fade_out }, #endif +#ifdef HAVE_BACKLIGHT_BRIGHTNESS + { ID2P(LANG_BRIGHTNESS), brightness }, +#endif #endif /* CONFIG_BACKLIGHT */ { ID2P(LANG_CONTRAST), contrast }, #ifdef HAVE_LCD_BITMAP |