[uphone] remove CfgGetScreenStatus call from EVENT_WinPaint, this api is out-of-process & inefficient

This commit is contained in:
Walzer 2010-12-30 15:42:11 +08:00
parent aa521489a0
commit eac572b2c9
1 changed files with 2 additions and 5 deletions

View File

@ -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;