summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 23:00:29 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 23:00:29 -0500
commit97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch)
treeb032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/sdl
parent3745c813f924b12232c4f37610aecd23fe5654b8 (diff)
downloadrockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.tar.gz
rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.zip
plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions
lessen the ifdef hell Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3
Diffstat (limited to 'apps/plugins/sdl')
-rw-r--r--apps/plugins/sdl/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/sdl/main.c b/apps/plugins/sdl/main.c
index 6efb072faf..7220c7cfd9 100644
--- a/apps/plugins/sdl/main.c
+++ b/apps/plugins/sdl/main.c
@@ -64,9 +64,8 @@ void cleanup(void)
64 if(audiobuf) 64 if(audiobuf)
65 memset(audiobuf, 0, 4); /* clear */ 65 memset(audiobuf, 0, 4); /* clear */
66 66
67#ifdef HAVE_BACKLIGHT
68 backlight_use_settings(); 67 backlight_use_settings();
69#endif 68
70#ifdef HAVE_ADJUSTABLE_CPU_FREQ 69#ifdef HAVE_ADJUSTABLE_CPU_FREQ
71 rb->cpu_boost(false); 70 rb->cpu_boost(false);
72#endif 71#endif
@@ -219,9 +218,9 @@ enum plugin_status plugin_start(const void *param)
219#ifdef HAVE_ADJUSTABLE_CPU_FREQ 218#ifdef HAVE_ADJUSTABLE_CPU_FREQ
220 rb->cpu_boost(true); 219 rb->cpu_boost(true);
221#endif 220#endif
222#ifdef HAVE_BACKLIGHT 221
223 backlight_ignore_timeout(); 222 backlight_ignore_timeout();
224#endif 223
225 /* set the real exit handler */ 224 /* set the real exit handler */
226#undef rb_atexit 225#undef rb_atexit
227 rb_atexit(cleanup); 226 rb_atexit(cleanup);