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.c | |
parent | 9d67765cae62e873c3d004bf9bcb68947f1568f6 (diff) | |
download | rockbox-9b83c6c4bddca41411d31b8aab17ecc577b37eb4.tar.gz rockbox-9b83c6c4bddca41411d31b8aab17ecc577b37eb4.zip |
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.c')
-rw-r--r-- | apps/settings.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index 22bfc9b60f..118692afe4 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -488,6 +488,10 @@ static const struct bit_entry hd_bits[] = | |||
488 | #endif | 488 | #endif |
489 | {4, S_O(default_codepage), 0, "default codepage", "iso8859-1,iso8859-7,iso8859-8,cp1251,iso8859-11,iso8859-6,iso8859-9,iso8859-2,sjis,gb2312,ksx1001,big5,utf-8" }, | 489 | {4, S_O(default_codepage), 0, "default codepage", "iso8859-1,iso8859-7,iso8859-8,cp1251,iso8859-11,iso8859-6,iso8859-9,iso8859-2,sjis,gb2312,ksx1001,big5,utf-8" }, |
490 | 490 | ||
491 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
492 | {4, S_O(brightness), 9, "brightness", "2,3,4,5,6,7,8,9,10,11,12,13,14,15"}, | ||
493 | #endif | ||
494 | |||
491 | /* If values are just added to the end, no need to bump the version. */ | 495 | /* If values are just added to the end, no need to bump the version. */ |
492 | /* new stuff to be added at the end */ | 496 | /* new stuff to be added at the end */ |
493 | 497 | ||
@@ -892,6 +896,9 @@ void settings_apply(void) | |||
892 | backlight_set_fade_out(global_settings.backlight_fade_out); | 896 | backlight_set_fade_out(global_settings.backlight_fade_out); |
893 | #endif | 897 | #endif |
894 | #endif | 898 | #endif |
899 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
900 | backlight_set_brightness(global_settings.brightness); | ||
901 | #endif | ||
895 | ata_spindown(global_settings.disk_spindown); | 902 | ata_spindown(global_settings.disk_spindown); |
896 | #if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR) | 903 | #if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR) |
897 | dac_line_in(global_settings.line_in); | 904 | dac_line_in(global_settings.line_in); |