From 1151cea7dd84dd116ee5801642ed9e5d56d9b703 Mon Sep 17 00:00:00 2001 From: yangws Date: Thu, 9 Dec 2010 11:41:32 +0800 Subject: [PATCH] fixed 233 keep the backlight on when the cocos2d-game at foreground. Signed-off-by: yangws --- cocos2dx/platform/uphone/CCXApplication_uphone.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos2dx/platform/uphone/CCXApplication_uphone.cpp b/cocos2dx/platform/uphone/CCXApplication_uphone.cpp index 47204634f0..e4c5893041 100644 --- a/cocos2dx/platform/uphone/CCXApplication_uphone.cpp +++ b/cocos2dx/platform/uphone/CCXApplication_uphone.cpp @@ -54,15 +54,15 @@ Boolean CCXApplication::EventHandler(EventType * pEvent) { StopMainLoop(); } -// CfgTurnOnBackLightEx(SYS_BACK_LIGHT_MODE_TIME_LONG); + CfgTurnOnBackLight(); EnableKeyLock(); } else if (pEvent->sParam1 > 0) { -// CfgTurnOnBackLightEx(SYS_BACK_LIGHT_MODE_TIME_ALWAYS); applicationWillEnterForeground(); StartMainLoop(); + CfgTurnOnBackLightDelay(0x7fffffff); // if KeyLock disactived, disable it. if (! CfgKeyLock_GetActive()) {