Merge pull request #5991 from dumganhar/develop

Mac build fix after merging https://github.com/cocos2d/cocos2d-x/pull/5989
This commit is contained in:
James Chen 2014-03-26 15:46:15 +08:00
commit 8e8de82feb
1 changed files with 3 additions and 3 deletions

View File

@ -523,7 +523,7 @@ void GLView::onGLFWMouseCallBack(GLFWwindow* window, int button, int action, int
_captured = true;
if (this->getViewPortRect().equals(Rect::ZERO) || this->getViewPortRect().containsPoint(Point(_mouseX,_mouseY)))
{
int id = 0;
intptr_t id = 0;
this->handleTouchesBegin(1, &id, &_mouseX, &_mouseY);
}
}
@ -532,7 +532,7 @@ void GLView::onGLFWMouseCallBack(GLFWwindow* window, int button, int action, int
if (_captured)
{
_captured = false;
int id = 0;
intptr_t id = 0;
this->handleTouchesEnd(1, &id, &_mouseX, &_mouseY);
}
}
@ -575,7 +575,7 @@ void GLView::onGLFWMouseMoveCallBack(GLFWwindow* window, double x, double y)
if (_captured)
{
int id = 0;
intptr_t id = 0;
this->handleTouchesMove(1, &id, &_mouseX, &_mouseY);
}