fixed #1302: The parameter of CCMenu::setHandlerPriority should be signed int.

This commit is contained in:
James Chen 2012-06-06 15:16:02 +08:00
parent 37aa196c73
commit 734ea54aba
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ void CCMenu::onExit()
//Menu - Events //Menu - Events
void CCMenu::setHandlerPriority(unsigned int newPriority) void CCMenu::setHandlerPriority(int newPriority)
{ {
CCTouchDispatcher* pDispatcher = CCDirector::sharedDirector()->getTouchDispatcher(); CCTouchDispatcher* pDispatcher = CCDirector::sharedDirector()->getTouchDispatcher();
pDispatcher->setPriority(newPriority, this); pDispatcher->setPriority(newPriority, this);

View File

@ -109,7 +109,7 @@ public:
void alignItemsInRows(unsigned int rows, va_list args); void alignItemsInRows(unsigned int rows, va_list args);
/** set event handler priority. By default it is: kCCMenuTouchPriority */ /** set event handler priority. By default it is: kCCMenuTouchPriority */
void setHandlerPriority(unsigned int newPriority); void setHandlerPriority(int newPriority);
//super methods //super methods
virtual void addChild(CCNode * child); virtual void addChild(CCNode * child);