diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
commit | 97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch) | |
tree | b032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/xobox.c | |
parent | 3745c813f924b12232c4f37610aecd23fe5654b8 (diff) | |
download | rockbox-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/xobox.c')
-rw-r--r-- | apps/plugins/xobox.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c index b8b1964db4..c7499fed7a 100644 --- a/apps/plugins/xobox.c +++ b/apps/plugins/xobox.c | |||
@@ -1297,10 +1297,9 @@ enum plugin_status plugin_start (const void *parameter) | |||
1297 | rb->lcd_set_backdrop(NULL); | 1297 | rb->lcd_set_backdrop(NULL); |
1298 | #endif | 1298 | #endif |
1299 | 1299 | ||
1300 | #ifdef HAVE_BACKLIGHT | ||
1301 | /* Turn off backlight timeout */ | 1300 | /* Turn off backlight timeout */ |
1302 | backlight_ignore_timeout(); | 1301 | backlight_ignore_timeout(); |
1303 | #endif | 1302 | |
1304 | highscore_load(SCORE_FILE, highscores, NUM_SCORES); | 1303 | highscore_load(SCORE_FILE, highscores, NUM_SCORES); |
1305 | 1304 | ||
1306 | if (!load_game()) { | 1305 | if (!load_game()) { |
@@ -1310,10 +1309,10 @@ enum plugin_status plugin_start (const void *parameter) | |||
1310 | randomize (); | 1309 | randomize (); |
1311 | ret = xobox_loop (); | 1310 | ret = xobox_loop (); |
1312 | 1311 | ||
1313 | #ifdef HAVE_BACKLIGHT | 1312 | |
1314 | /* Turn on backlight timeout (revert to settings) */ | 1313 | /* Turn on backlight timeout (revert to settings) */ |
1315 | backlight_use_settings(); | 1314 | backlight_use_settings(); |
1316 | #endif | 1315 | |
1317 | rb->lcd_setfont (FONT_UI); | 1316 | rb->lcd_setfont (FONT_UI); |
1318 | 1317 | ||
1319 | highscore_save(SCORE_FILE, highscores, NUM_SCORES); | 1318 | highscore_save(SCORE_FILE, highscores, NUM_SCORES); |