summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pacbox
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:20:15 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:20:15 -0400
commit9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (patch)
tree46b4a9f4650d288bcbe67e92a9138b45c06105fa /apps/plugins/pacbox
parent2127906384d618e032692becba10aeda1b3e1974 (diff)
downloadrockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.tar.gz
rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.zip
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/pacbox')
-rwxr-xr-xapps/plugins/pacbox/pacbox.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c
index 33c1cf6bba..182e4a473a 100755
--- a/apps/plugins/pacbox/pacbox.c
+++ b/apps/plugins/pacbox/pacbox.c
@@ -768,9 +768,11 @@ enum plugin_status plugin_start(const void* parameter)
the settings have changed when we quit */
old_settings = settings;
+#ifdef HAVE_BACKLIGHT
/*Turn off backlight for ai*/
if(settings.ai)
backlight_ignore_timeout();
+#endif
/* Initialise the hardware */
init_PacmanMachine(settings_to_dip(settings));
@@ -803,8 +805,8 @@ enum plugin_status plugin_start(const void* parameter)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif
-
+#ifdef HAVE_BACKLIGHT
backlight_use_settings();
-
+#endif
return PLUGIN_OK;
}