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.zip rockbox-da5fb18bca90ec09b99f28186787d10378a92109.tar.gz rockbox-da5fb18bca90ec09b99f28186787d10378a92109.tar.bz2 rockbox-da5fb18bca90ec09b99f28186787d10378a92109.tar.xz | |
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 f5c0ba7..4487361 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -296,6 +296,14 @@ static const struct bit_entry rtc_bits[] = #endif #endif +#ifdef CONFIG_BACKLIGHT +#ifdef HAVE_LCD_COLOR + {1, S_O(bl_filter_first_keypress), true, "backlight filters first keypress", off_on }, +#else + {1, S_O(bl_filter_first_keypress), false, "backlight filters first keypress", off_on }, +#endif +#endif + /* new stuff to be added here */ /* If values are just added to the end, no need to bump the version. */ @@ -1115,6 +1123,10 @@ void settings_apply(void) #ifdef HAVE_SPDIF_POWER spdif_power_enable(global_settings.spdif_enable); #endif + +#ifdef CONFIG_BACKLIGHT + set_backlight_filter_keypress(global_settings.bl_filter_first_keypress); +#endif } |