summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pictureflow
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:14:32 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:17:19 -0400
commita3398a21435045fb6af1af14cc5638fd0cb52119 (patch)
tree701d1f73cc89742ea4ae21d11a60f2f029284099 /apps/plugins/pictureflow
parent5dbb7576700fad81d6ab722b96620fdbbf462be4 (diff)
downloadrockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.tar.gz
rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.tar.bz2
rockbox-a3398a21435045fb6af1af14cc5638fd0cb52119.zip
plugins: Fix the builds for targets lacking HAVE_BACKLIGHT
Change-Id: Ifdb1501834b7ea63ca6f731bbd6414305d7e0001
Diffstat (limited to 'apps/plugins/pictureflow')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index a32298f861..ba3ae3018f 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -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();