This commit is contained in:
natural-law 2010-10-13 08:29:00 +00:00
parent c8e2874c9f
commit 9caa4c2883
2 changed files with 4 additions and 4 deletions

View File

@ -105,12 +105,12 @@ Boolean Ttest_uphoneApp::EventHandler(EventType* pEvent)
return bHandled;
}
void Ttest_uphoneApp::applicationDidEnterBackground(TApplication* pApp)
void Ttest_uphoneApp::applicationDidEnterBackground()
{
CCDirector::getSharedDirector()->stopAnimation();
}
void Ttest_uphoneApp::applicationWillEnterForeground(TApplication* pApp)
void Ttest_uphoneApp::applicationWillEnterForeground()
{
CCDirector::getSharedDirector()->startAnimation();
}

View File

@ -21,8 +21,8 @@ public:
public:
virtual Boolean EventHandler(EventType * pEvent);
virtual void applicationDidEnterBackground(TApplication* pApp);
virtual void applicationWillEnterForeground(TApplication* pApp);
virtual void applicationDidEnterBackground();
virtual void applicationWillEnterForeground();
protected:
cocos2d::CCXEGLView * m_pMainWnd;