From 221f07610c86992348264bbd68304e45aa957b65 Mon Sep 17 00:00:00 2001 From: yangws Date: Tue, 14 Sep 2010 08:34:14 +0000 Subject: [PATCH] hide system state bar when cocos2d running --- cocos2dx/platform/uphone/CCXEGLView_uphone.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp b/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp index 9947963f4e..6c42b751b7 100644 --- a/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp +++ b/cocos2dx/platform/uphone/CCXEGLView_uphone.cpp @@ -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; }