summaryrefslogtreecommitdiff
path: root/apps/plugins/rockblox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockblox.c')
-rw-r--r--apps/plugins/rockblox.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 31c626e267..f1f260a55d 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -1505,14 +1505,16 @@ static int rockblox_loop (void)
1505#ifdef HAS_BUTTON_HOLD 1505#ifdef HAS_BUTTON_HOLD
1506 if (rb->button_hold ()) { 1506 if (rb->button_hold ()) {
1507 /* Turn on backlight timeout (revert to settings) */ 1507 /* Turn on backlight timeout (revert to settings) */
1508#ifdef HAVE_BACKLIGHT
1508 backlight_use_settings(); 1509 backlight_use_settings();
1510#endif
1509 rb->splash(0, "Paused"); 1511 rb->splash(0, "Paused");
1510 while (rb->button_hold ()) 1512 while (rb->button_hold ())
1511 rb->sleep(HZ/10); 1513 rb->sleep(HZ/10);
1512 1514#ifdef HAVE_BACKLIGHT
1513 /* Turn off backlight timeout */ 1515 /* Turn off backlight timeout */
1514 backlight_ignore_timeout(); 1516 backlight_ignore_timeout();
1515 1517#endif
1516 /* get rid of the splash text */ 1518 /* get rid of the splash text */
1517 rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT); 1519 rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT);
1518 show_details (); 1520 show_details ();
@@ -1682,8 +1684,10 @@ enum plugin_status plugin_start (const void *parameter)
1682 1684
1683 rb->lcd_setfont (FONT_SYSFIXED); 1685 rb->lcd_setfont (FONT_SYSFIXED);
1684 1686
1687#ifdef HAVE_BACKLIGHT
1685 /* Turn off backlight timeout */ 1688 /* Turn off backlight timeout */
1686 backlight_ignore_timeout(); 1689 backlight_ignore_timeout();
1690#endif
1687 load_game(); 1691 load_game();
1688 resume_file = resume; 1692 resume_file = resume;
1689 1693
@@ -1731,7 +1735,9 @@ enum plugin_status plugin_start (const void *parameter)
1731 1735
1732 /* Save user's HighScore */ 1736 /* Save user's HighScore */
1733 highscore_save(SCORE_FILE, highscores, NUM_SCORES); 1737 highscore_save(SCORE_FILE, highscores, NUM_SCORES);
1738#ifdef HAVE_BACKLIGNT
1734 backlight_use_settings(); 1739 backlight_use_settings();
1740#endif
1735 1741
1736 return PLUGIN_OK; 1742 return PLUGIN_OK;
1737} 1743}