rendered paste bodypatch hunk:
Index: apps/settings_menu.c
===================================================================
--- apps/settings_menu.c (revision 12132)
+++ apps/settings_menu.c (working copy)
@@ -1196,8 +1196,15 @@
#ifdef CONFIG_BACKLIGHT
static bool set_bl_filter_first_keypress(void)
{
- bool result = set_bool( str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
- &global_settings.bl_filter_first_keypress );
+ static const struct opt_items names[] = {
+ { STR(LANG_BACKLIGHT_FILTER_MODE0) },
+ { STR(LANG_BACKLIGHT_FILTER_MODE1) },
+ { STR(LANG_BACKLIGHT_FILTER_MODE2) },
+ { STR(LANG_BACKLIGHT_FILTER_MODE3) }
+ };
+ bool result = set_option(str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
+ &global_settings.bl_filter_first_keypress,
+ INT, names, 4, NULL );
set_backlight_filter_keypress(global_settings.bl_filter_first_keypress);
return result;
}
rej file:
--- apps/menus/settings_menu.c.orig 2007-07-22 03:00:00.000000000 +0200
+++ apps/menus/settings_menu.c 2007-07-22 03:00:00.000000000 +0200
***************
*** 1196,1203 ****
#ifdef CONFIG_BACKLIGHT
static bool set_bl_filter_first_keypress(void)
{
- bool result = set_bool( str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
- &global_settings.bl_filter_first_keypress );
set_backlight_filter_keypress(global_settings.bl_filter_first_keypress);
return result;
}
--- 1196,1210 ----
#ifdef CONFIG_BACKLIGHT
static bool set_bl_filter_first_keypress(void)
{
+ static const struct opt_items names[] = {
+ { STR(LANG_BACKLIGHT_FILTER_MODE0) },
+ { STR(LANG_BACKLIGHT_FILTER_MODE1) },
+ { STR(LANG_BACKLIGHT_FILTER_MODE2) },
+ { STR(LANG_BACKLIGHT_FILTER_MODE3) }
+ };
+ bool result = set_option(str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
+ &global_settings.bl_filter_first_keypress,
+ INT, names, 4, NULL );
set_backlight_filter_keypress(global_settings.bl_filter_first_keypress);
return result;
}