summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl
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/sdl
parent2127906384d618e032692becba10aeda1b3e1974 (diff)
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/sdl')
-rw-r--r--apps/plugins/sdl/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/sdl/main.c b/apps/plugins/sdl/main.c
index be5192898c..6efb072faf 100644
--- a/apps/plugins/sdl/main.c
+++ b/apps/plugins/sdl/main.c
@@ -64,8 +64,9 @@ void cleanup(void)
if(audiobuf)
memset(audiobuf, 0, 4); /* clear */
+#ifdef HAVE_BACKLIGHT
backlight_use_settings();
-
+#endif
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif
@@ -218,8 +219,9 @@ enum plugin_status plugin_start(const void *param)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(true);
#endif
-
+#ifdef HAVE_BACKLIGHT
backlight_ignore_timeout();
+#endif
/* set the real exit handler */
#undef rb_atexit
rb_atexit(cleanup);