summaryrefslogtreecommitdiffstats
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/rockboy/menu.c24
-rw-r--r--apps/plugins/rockboy/rockboy.c6
2 files changed, 21 insertions, 9 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c
index ec72d5e4e9..ab27f3dece 100644
--- a/apps/plugins/rockboy/menu.c
+++ b/apps/plugins/rockboy/menu.c
@@ -4,6 +4,7 @@
/* Note: this file only exposes one function: do_user_menu(). */
/*********************************************************************/
+#include "lib/helper.h"
#include "button.h"
#include "rockmacros.h"
#include "mem.h"
@@ -46,18 +47,18 @@ static int getbutton(char *text)
static void setupkeys(void)
{
- options.UP=getbutton ("Press Up");
- options.DOWN=getbutton ("Press Down");
- options.LEFT=getbutton ("Press Left");
- options.RIGHT=getbutton ("Press Right");
+ options.UP = getbutton("Press Up");
+ options.DOWN = getbutton("Press Down");
+ options.LEFT = getbutton("Press Left");
+ options.RIGHT = getbutton("Press Right");
- options.A=getbutton ("Press A");
- options.B=getbutton ("Press B");
+ options.A = getbutton("Press A");
+ options.B = getbutton("Press B");
- options.START=getbutton ("Press Start");
- options.SELECT=getbutton("Press Select");
+ options.START = getbutton("Press Start");
+ options.SELECT = getbutton("Press Select");
- options.MENU=getbutton ("Press Menu");
+ options.MENU = getbutton("Press Menu");
}
/*
@@ -80,6 +81,8 @@ int do_user_menu(void) {
rb->lcd_set_mode(LCD_MODE_RGB565);
#endif
+ backlight_use_settings();
+
/* Clean out the button Queue */
while (rb->button_get(false) != BUTTON_NONE)
rb->yield();
@@ -128,6 +131,9 @@ int do_user_menu(void) {
rb->lcd_set_mode(LCD_MODE_PAL256);
#endif
+ /* ignore backlight time out */
+ backlight_force_on();
+
return ret;
}
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c
index 19d346be33..0364f47faa 100644
--- a/apps/plugins/rockboy/rockboy.c
+++ b/apps/plugins/rockboy/rockboy.c
@@ -19,6 +19,7 @@
*
****************************************************************************/
#include "plugin.h"
+#include "lib/helper.h"
#include "loader.h"
#include "rockmacros.h"
#include "input.h"
@@ -426,6 +427,9 @@ enum plugin_status plugin_start(const void* parameter)
rb->lcd_set_mode(LCD_MODE_PAL256);
#endif
+ /* ignore backlight time out */
+ backlight_force_on();
+
gnuboy_main(parameter);
#ifdef HAVE_WHEEL_POSITION
@@ -436,6 +440,8 @@ enum plugin_status plugin_start(const void* parameter)
rb->lcd_set_mode(LCD_MODE_RGB565);
#endif
+ backlight_use_settings();
+
if(shut&&!cleanshut)
{
rb->splash(HZ/2, errormsg);