plugins: Fix the builds for targets lacking HAVE_BACKLIGHT

Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
This commit is contained in:
Solomon Peachy 2020-07-24 18:14:32 -04:00
parent 5dbb757670
commit a3398a2143
7 changed files with 40 additions and 10 deletions

View file

@ -2971,8 +2971,10 @@ static void cleanup(void)
rb->cpu_boost(false);
#endif
end_pf_thread();
#ifdef HAVE_BACKLIGHT
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings();
#endif
#ifdef USEGSLIB
grey_release();
@ -3508,7 +3510,9 @@ static int pictureflow_main(void)
draw_splashscreen(pf_idx.buf, pf_idx.buf_sz);
if(pf_cfg.backlight_mode == 0) {
/* Turn off backlight timeout */
#ifdef HAVE_BACKLIGHT
backlight_ignore_timeout();
#endif
}
init_scroll_lines();