summaryrefslogtreecommitdiff
path: root/apps/plugins/wormlet.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/wormlet.c')
-rw-r--r--apps/plugins/wormlet.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index 6abcc43..a2abdba 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -18,6 +18,7 @@
****************************************************************************/
#include "plugin.h"
#include "configfile.h"
+#include "helper.h"
PLUGIN_HEADER
@@ -2332,9 +2333,8 @@ bool launch_wormlet(void)
rb->lcd_clear_display();
- /* Permanently enable the backlight (unless the user has turned it off) */
- if (rb->global_settings->backlight_timeout > 0)
- rb->backlight_set_timeout(1);
+ /* Turn off backlight timeout */
+ backlight_force_on(); /* backlight control in lib/helper.c */
/* start the game */
while (game_result == 1)
@@ -2343,8 +2343,8 @@ bool launch_wormlet(void)
switch (game_result)
{
case 2:
- /* Restore user's original backlight setting */
- rb->backlight_set_timeout(rb->global_settings->backlight_timeout);
+ /* Turn on backlight timeout (revert to settings) */
+ backlight_use_settings(); /* backlight control in lib/helper.c */
return false;
break;
}