From a70c6b9b1e2bcf7a5a207017d6c40f5254f6ef98 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Sat, 25 Mar 2006 19:16:45 +0000 Subject: 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 --- apps/settings_menu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/settings_menu.c') diff --git a/apps/settings_menu.c b/apps/settings_menu.c index e5aa7f44d7..ab0e21d098 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -1082,6 +1082,15 @@ static bool set_bl_filter_first_keypress(void) set_backlight_filter_keypress(global_settings.bl_filter_first_keypress); return result; } +#ifdef HAVE_REMOTE_LCD +static bool set_remote_bl_filter_first_keypress(void) +{ + bool result = set_bool( str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS), + &global_settings.remote_bl_filter_first_keypress ); + set_remote_backlight_filter_keypress(global_settings.remote_bl_filter_first_keypress); + return result; +} +#endif #endif static bool ff_rewind_accel(void) @@ -1694,6 +1703,7 @@ static bool lcd_remote_settings_menu(void) remote_backlight_timer_plugged }, #endif { ID2P(LANG_CAPTION_BACKLIGHT), remote_caption_backlight }, + { ID2P(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS), set_remote_bl_filter_first_keypress }, { ID2P(LANG_CONTRAST), remote_contrast }, { ID2P(LANG_INVERT), remote_invert }, { ID2P(LANG_FLIP_DISPLAY), remote_flip_display }, -- cgit v1.2.3