From ae623208b30fb301cef82bb9f9b7c38b754014e6 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 23 Jan 2006 17:23:02 +0000 Subject: Correct backlight handling git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8429 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/brickmania.c | 7 +++++-- 1 file 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) bally=0; ballx=0; - rb->backlight_set_timeout(1); + /* Permanently enable the backlight (unless the user has turned it off) */ + if (rb->global_settings->backlight_timeout > 0) + rb->backlight_set_timeout(1); /* now go ahead and have fun! */ while (dxball_game()!=1); configfile_save(HIGH_SCORE,config,1,0); - rb->backlight_set_timeout(15); + /* Restore user's original backlight setting */ + rb->backlight_set_timeout(rb->global_settings->backlight_timeout); #if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ) rb->cpu_boost(false); -- cgit v1.2.3