diff options
author | Björn Stenberg <bjorn@haxx.se> | 2006-03-24 13:47:24 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2006-03-24 13:47:24 +0000 |
commit | da5fb18bca90ec09b99f28186787d10378a92109 (patch) | |
tree | 606690b331740a1a1f022cb8f5fce71fa06ddd10 /apps/settings.c | |
parent | 86f1e2ead283d86f6896ca0f98c0b711da5e2cfe (diff) | |
download | rockbox-da5fb18bca90ec09b99f28186787d10378a92109.tar.gz rockbox-da5fb18bca90ec09b99f28186787d10378a92109.zip |
New option: First keypress enables backlight only. Patch #2920 by Nicolas Pennequin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9228 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index f5c0ba7c2d..4487361e8d 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -296,6 +296,14 @@ static const struct bit_entry rtc_bits[] = | |||
296 | #endif | 296 | #endif |
297 | #endif | 297 | #endif |
298 | 298 | ||
299 | #ifdef CONFIG_BACKLIGHT | ||
300 | #ifdef HAVE_LCD_COLOR | ||
301 | {1, S_O(bl_filter_first_keypress), true, "backlight filters first keypress", off_on }, | ||
302 | #else | ||
303 | {1, S_O(bl_filter_first_keypress), false, "backlight filters first keypress", off_on }, | ||
304 | #endif | ||
305 | #endif | ||
306 | |||
299 | /* new stuff to be added here */ | 307 | /* new stuff to be added here */ |
300 | /* If values are just added to the end, no need to bump the version. */ | 308 | /* If values are just added to the end, no need to bump the version. */ |
301 | 309 | ||
@@ -1115,6 +1123,10 @@ void settings_apply(void) | |||
1115 | #ifdef HAVE_SPDIF_POWER | 1123 | #ifdef HAVE_SPDIF_POWER |
1116 | spdif_power_enable(global_settings.spdif_enable); | 1124 | spdif_power_enable(global_settings.spdif_enable); |
1117 | #endif | 1125 | #endif |
1126 | |||
1127 | #ifdef CONFIG_BACKLIGHT | ||
1128 | set_backlight_filter_keypress(global_settings.bl_filter_first_keypress); | ||
1129 | #endif | ||
1118 | } | 1130 | } |
1119 | 1131 | ||
1120 | 1132 | ||