mirror of https://github.com/axmolengine/axmol.git
hide system state bar when cocos2d running
This commit is contained in:
parent
f0f56919c2
commit
221f07610c
|
@ -405,6 +405,13 @@ CCXEGLView::~CCXEGLView()
|
|||
|
||||
Boolean CCXEGLView::AfterCreate(void)
|
||||
{
|
||||
TApplication pApp = TApplication::GetCurrentApplication();
|
||||
TRectangle rcHotArea(pApp->GetSystemStatusBarPosX(),
|
||||
pApp->GetSystemStatusBarPosY(),
|
||||
pApp->GetSystemStatusBarWidth(),
|
||||
pApp->GetSystemStatusBarHeight());
|
||||
RegisterHotArea(&rcHotArea);
|
||||
|
||||
return (m_pEGL = CCXEGL::create(this)) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue