From eac572b2c9a6b5d63dd7ec15120f8e29999936c8 Mon Sep 17 00:00:00 2001 From: Walzer Date: Thu, 30 Dec 2010 15:42:11 +0800 Subject: [PATCH] [uphone] remove CfgGetScreenStatus call from EVENT_WinPaint, this api is out-of-process & inefficient --- cocos2dx/platform/uphone/CCXEGLView_uphone.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp b/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp index d081f5939c..7cfba7dcbd 100644 --- a/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp +++ b/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp @@ -225,11 +225,8 @@ Boolean CCXEGLView::EventHandler(TApplication * pApp, EventType * pEvent) break; case EVENT_WinPaint: - if (CfgGetScreenStatus()) - { - // draw - CCDirector::sharedDirector()->preMainLoop(); - } + // draw + CCDirector::sharedDirector()->preMainLoop(); bHandled = TRUE; break;