summaryrefslogtreecommitdiff
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.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)
2971 rb->cpu_boost(false); 2971 rb->cpu_boost(false);
2972#endif 2972#endif
2973 end_pf_thread(); 2973 end_pf_thread();
2974#ifdef HAVE_BACKLIGHT
2974 /* Turn on backlight timeout (revert to settings) */ 2975 /* Turn on backlight timeout (revert to settings) */
2975 backlight_use_settings(); 2976 backlight_use_settings();
2977#endif
2976 2978
2977#ifdef USEGSLIB 2979#ifdef USEGSLIB
2978 grey_release(); 2980 grey_release();
@@ -3508,7 +3510,9 @@ static int pictureflow_main(void)
3508 draw_splashscreen(pf_idx.buf, pf_idx.buf_sz); 3510 draw_splashscreen(pf_idx.buf, pf_idx.buf_sz);
3509 if(pf_cfg.backlight_mode == 0) { 3511 if(pf_cfg.backlight_mode == 0) {
3510 /* Turn off backlight timeout */ 3512 /* Turn off backlight timeout */
3513#ifdef HAVE_BACKLIGHT
3511 backlight_ignore_timeout(); 3514 backlight_ignore_timeout();
3515#endif
3512 } 3516 }
3513 3517
3514 init_scroll_lines(); 3518 init_scroll_lines();