mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
plugins: pictureflow: fix backlight setting requires restart
Change-Id: I6a2f0fe1ab3909ab831f89f92988d82b5a7c9b14
This commit is contained in:
parent
4811e48026
commit
4ebf2edf32
1 changed files with 4 additions and 2 deletions
|
@ -3552,6 +3552,10 @@ static int display_settings_menu(void)
|
||||||
case 0:
|
case 0:
|
||||||
rb->set_option(rb->str(LANG_BACKLIGHT),
|
rb->set_option(rb->str(LANG_BACKLIGHT),
|
||||||
&pf_cfg.backlight_mode, RB_INT, backlight_options, 2, NULL);
|
&pf_cfg.backlight_mode, RB_INT, backlight_options, 2, NULL);
|
||||||
|
if(pf_cfg.backlight_mode == 0)
|
||||||
|
backlight_ignore_timeout();
|
||||||
|
else
|
||||||
|
backlight_use_settings();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
old_val = pf_cfg.show_fps;
|
old_val = pf_cfg.show_fps;
|
||||||
|
@ -4485,10 +4489,8 @@ static bool init(void)
|
||||||
config_set_defaults(&pf_cfg); /* must appear before configfile_save */
|
config_set_defaults(&pf_cfg); /* must appear before configfile_save */
|
||||||
configfile_load(CONFIG_FILE, config, CONFIG_NUM_ITEMS, CONFIG_VERSION);
|
configfile_load(CONFIG_FILE, config, CONFIG_NUM_ITEMS, CONFIG_VERSION);
|
||||||
|
|
||||||
#ifdef HAVE_BACKLIGHT
|
|
||||||
if(pf_cfg.backlight_mode == 0)
|
if(pf_cfg.backlight_mode == 0)
|
||||||
backlight_ignore_timeout(); /* restore in cleanup */
|
backlight_ignore_timeout(); /* restore in cleanup */
|
||||||
#endif
|
|
||||||
|
|
||||||
#if PF_PLAYBACK_CAPABLE
|
#if PF_PLAYBACK_CAPABLE
|
||||||
buf = rb->plugin_get_buffer(&buf_size);
|
buf = rb->plugin_get_buffer(&buf_size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue