summaryrefslogtreecommitdiffstats
path: root/apps/plugins/wormlet.c
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/wormlet.c
parent2127906384d618e032692becba10aeda1b3e1974 (diff)
downloadrockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.tar.gz
rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.tar.bz2
rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.zip
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/wormlet.c')
-rw-r--r--apps/plugins/wormlet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index b18cdc21f8..419b258fe5 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -2415,9 +2415,10 @@ static bool launch_wormlet(void)
rb->lcd_clear_display();
+#ifdef HAVE_BACKLIGHT
/* Turn off backlight timeout */
backlight_ignore_timeout();
-
+#endif
/* start the game */
while (game_result == 1)
game_result = run();
@@ -2425,8 +2426,10 @@ static bool launch_wormlet(void)
switch (game_result)
{
case 2:
+#ifdef HAVE_BACKLIGHT
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings();
+#endif
return false;
break;
}