summaryrefslogtreecommitdiff
path: root/apps/plugins/xworld
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/xworld
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/xworld')
-rw-r--r--apps/plugins/xworld/sys.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/xworld/sys.c b/apps/plugins/xworld/sys.c
index a806de5297..ece9d87b66 100644
--- a/apps/plugins/xworld/sys.c
+++ b/apps/plugins/xworld/sys.c
@@ -122,9 +122,8 @@ void exit_handler(void)
122#ifdef HAVE_ADJUSTABLE_CPU_FREQ 122#ifdef HAVE_ADJUSTABLE_CPU_FREQ
123 rb->cpu_boost(false); 123 rb->cpu_boost(false);
124#endif 124#endif
125#ifdef HAVE_BACKLIGHT 125
126 backlight_use_settings(); 126 backlight_use_settings();
127#endif
128} 127}
129 128
130static bool sys_do_help(void) 129static bool sys_do_help(void)
@@ -428,9 +427,8 @@ void sys_menu(struct System* sys)
428void sys_init(struct System* sys, const char* title) 427void sys_init(struct System* sys, const char* title)
429{ 428{
430 (void) title; 429 (void) title;
431#ifdef HAVE_BACKLIGHT 430
432 backlight_ignore_timeout(); 431 backlight_ignore_timeout();
433#endif
434 rb_atexit(exit_handler); 432 rb_atexit(exit_handler);
435 save_sys = sys; 433 save_sys = sys;
436 rb->memset(&sys->input, 0, sizeof(sys->input)); 434 rb->memset(&sys->input, 0, sizeof(sys->input));