Advertising
- Someone
- Sunday, July 22nd, 2007 at 5:31:10am MDT
- patch 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;
- }
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.