summaryrefslogtreecommitdiff
path: root/apps/plugins/rockblox.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2011-01-24 12:29:16 +0000
committerTeruaki Kawashima <teru@rockbox.org>2011-01-24 12:29:16 +0000
commit01313d5039609c34b2b56ec8ba7a3a6c48ddaf3c (patch)
tree3f6e9cf673fac24cc7087b517cdaa0b82ecd463c /apps/plugins/rockblox.c
parentf06f6852733b084a5bd09528322d9ffc6886d2f3 (diff)
downloadrockbox-01313d5039609c34b2b56ec8ba7a3a6c48ddaf3c.tar.gz
rockbox-01313d5039609c34b2b56ec8ba7a3a6c48ddaf3c.zip
* Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does.
* Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp. No functional change except lamp. See aslo FS#9883. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockblox.c')
-rw-r--r--apps/plugins/rockblox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 6d5ef8023e..d86cb1c293 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -1345,13 +1345,13 @@ static int rockblox_loop (void)
1345#ifdef HAS_BUTTON_HOLD 1345#ifdef HAS_BUTTON_HOLD
1346 if (rb->button_hold ()) { 1346 if (rb->button_hold ()) {
1347 /* Turn on backlight timeout (revert to settings) */ 1347 /* Turn on backlight timeout (revert to settings) */
1348 backlight_use_settings(); /* backlight control in lib/helper.c */ 1348 backlight_use_settings();
1349 rb->splash(0, "Paused"); 1349 rb->splash(0, "Paused");
1350 while (rb->button_hold ()) 1350 while (rb->button_hold ())
1351 rb->sleep(HZ/10); 1351 rb->sleep(HZ/10);
1352 1352
1353 /* Turn off backlight timeout */ 1353 /* Turn off backlight timeout */
1354 backlight_force_on(); /* backlight control in lib/helper.c */ 1354 backlight_ignore_timeout();
1355 1355
1356 /* get rid of the splash text */ 1356 /* get rid of the splash text */
1357 rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT); 1357 rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT);
@@ -1527,7 +1527,7 @@ enum plugin_status plugin_start (const void *parameter)
1527 } 1527 }
1528#endif 1528#endif
1529 /* Turn off backlight timeout */ 1529 /* Turn off backlight timeout */
1530 backlight_force_on(); /* backlight control in lib/helper.c */ 1530 backlight_ignore_timeout();
1531 load_game(); 1531 load_game();
1532 resume_file = resume; 1532 resume_file = resume;
1533 while(!rockblox_loop()) { 1533 while(!rockblox_loop()) {
@@ -1548,7 +1548,7 @@ enum plugin_status plugin_start (const void *parameter)
1548#endif 1548#endif
1549 /* Save user's HighScore */ 1549 /* Save user's HighScore */
1550 highscore_save(SCORE_FILE, highscores, NUM_SCORES); 1550 highscore_save(SCORE_FILE, highscores, NUM_SCORES);
1551 backlight_use_settings(); /* backlight control in lib/helper.c */ 1551 backlight_use_settings();
1552 1552
1553 return PLUGIN_OK; 1553 return PLUGIN_OK;
1554} 1554}