plugins: More HAVE_BACKLIGHT cleanup

Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
This commit is contained in:
Solomon Peachy 2020-07-24 19:20:15 -04:00
parent 2127906384
commit 9be5bc4cf0
30 changed files with 149 additions and 44 deletions

View file

@ -2687,8 +2687,10 @@ static int lrc_main(void)
vp_lyrics[i].height -= h;
}
#ifdef HAVE_BACKLIGHT
if (prefs.backlight_on)
backlight_ignore_timeout();
#endif
/* in case settings that may affect break position
* are changed (statusbar_on and wrap). */
@ -2780,8 +2782,10 @@ static int lrc_main(void)
FOR_NB_SCREENS(i)
rb->viewportmanager_theme_undo(i, false);
#ifdef HAVE_BACKLIGHT
if (prefs.backlight_on)
backlight_use_settings();
#endif
return ret;
}