diff options
author | Hristo Kovachev <bger@rockbox.org> | 2006-03-25 19:16:45 +0000 |
---|---|---|
committer | Hristo Kovachev <bger@rockbox.org> | 2006-03-25 19:16:45 +0000 |
commit | a70c6b9b1e2bcf7a5a207017d6c40f5254f6ef98 (patch) | |
tree | e39563c6b848d65c0700875676c01da43d3f645b /apps/settings.c | |
parent | 7b9ab84e7d37a761a7b4a5817c6da71213cc17ad (diff) | |
download | rockbox-a70c6b9b1e2bcf7a5a207017d6c40f5254f6ef98.tar.gz rockbox-a70c6b9b1e2bcf7a5a207017d6c40f5254f6ef98.zip |
Patch #4913 by David Rothenberger with some changes by me: add only backlight on first keypress to the lcd remotes, too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c index 4487361e8d..8c4e3dea71 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -297,11 +297,18 @@ static const struct bit_entry rtc_bits[] = | |||
297 | #endif | 297 | #endif |
298 | 298 | ||
299 | #ifdef CONFIG_BACKLIGHT | 299 | #ifdef CONFIG_BACKLIGHT |
300 | {1, S_O(bl_filter_first_keypress), | ||
300 | #ifdef HAVE_LCD_COLOR | 301 | #ifdef HAVE_LCD_COLOR |
301 | {1, S_O(bl_filter_first_keypress), true, "backlight filters first keypress", off_on }, | 302 | true, |
302 | #else | 303 | #else |
303 | {1, S_O(bl_filter_first_keypress), false, "backlight filters first keypress", off_on }, | 304 | false, |
304 | #endif | 305 | #endif |
306 | "backlight filters first keypress", off_on }, | ||
307 | #ifdef HAVE_REMOTE_LCD | ||
308 | {1, S_O(remote_bl_filter_first_keypress), false, | ||
309 | "backlight filters first remote keypress", off_on }, | ||
310 | #endif | ||
311 | |||
305 | #endif | 312 | #endif |
306 | 313 | ||
307 | /* new stuff to be added here */ | 314 | /* new stuff to be added here */ |
@@ -1126,6 +1133,9 @@ void settings_apply(void) | |||
1126 | 1133 | ||
1127 | #ifdef CONFIG_BACKLIGHT | 1134 | #ifdef CONFIG_BACKLIGHT |
1128 | set_backlight_filter_keypress(global_settings.bl_filter_first_keypress); | 1135 | set_backlight_filter_keypress(global_settings.bl_filter_first_keypress); |
1136 | #ifdef HAVE_REMOTE_LCD | ||
1137 | set_remote_backlight_filter_keypress(global_settings.remote_bl_filter_first_keypress); | ||
1138 | #endif | ||
1129 | #endif | 1139 | #endif |
1130 | } | 1140 | } |
1131 | 1141 | ||