diff options
author | Dave Chapman <dave@dchapman.com> | 2006-01-23 17:23:02 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-01-23 17:23:02 +0000 |
commit | ae623208b30fb301cef82bb9f9b7c38b754014e6 (patch) | |
tree | bc5043b5dd6cf1cbdb8f75d3fed6cc0f887e0422 /apps/plugins/brickmania.c | |
parent | 06e25c8c463a965059a1b3f85ee64616d6594f77 (diff) | |
download | rockbox-ae623208b30fb301cef82bb9f9b7c38b754014e6.tar.gz rockbox-ae623208b30fb301cef82bb9f9b7c38b754014e6.zip |
Correct backlight handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8429 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r-- | apps/plugins/brickmania.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index eec290f507..3e16cd6505 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -1096,14 +1096,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1096 | bally=0; | 1096 | bally=0; |
1097 | ballx=0; | 1097 | ballx=0; |
1098 | 1098 | ||
1099 | rb->backlight_set_timeout(1); | 1099 | /* Permanently enable the backlight (unless the user has turned it off) */ |
1100 | if (rb->global_settings->backlight_timeout > 0) | ||
1101 | rb->backlight_set_timeout(1); | ||
1100 | 1102 | ||
1101 | /* now go ahead and have fun! */ | 1103 | /* now go ahead and have fun! */ |
1102 | while (dxball_game()!=1); | 1104 | while (dxball_game()!=1); |
1103 | 1105 | ||
1104 | configfile_save(HIGH_SCORE,config,1,0); | 1106 | configfile_save(HIGH_SCORE,config,1,0); |
1105 | 1107 | ||
1106 | rb->backlight_set_timeout(15); | 1108 | /* Restore user's original backlight setting */ |
1109 | rb->backlight_set_timeout(rb->global_settings->backlight_timeout); | ||
1107 | 1110 | ||
1108 | #if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ) | 1111 | #if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ) |
1109 | rb->cpu_boost(false); | 1112 | rb->cpu_boost(false); |