hide system state bar when cocos2d running

This commit is contained in:
yangws 2010-09-14 08:34:14 +00:00
parent f0f56919c2
commit 221f07610c
1 changed files with 7 additions and 0 deletions

View File

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