mirror of https://github.com/axmolengine/axmol.git
[uphone] remove CfgGetScreenStatus call from EVENT_WinPaint, this api is out-of-process & inefficient
This commit is contained in:
parent
aa521489a0
commit
eac572b2c9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue