Skip to content

Commit

Permalink
fixed cocos2d#1058
Browse files Browse the repository at this point in the history
fixed: CCLuaEngine to call CCTouch::locationInView () use not exist
parameter view id
  • Loading branch information
dualface committed Mar 15, 2012
1 parent 7b50d28 commit 98ec74e
Show file tree
Hide file tree
Showing 4 changed files with 39,755 additions and 39,793 deletions.
4 changes: 2 additions & 2 deletions lua/cocos2dx_support/CCLuaEngine.cpp
Expand Up @@ -252,7 +252,7 @@ int CCLuaEngine::pushCCObjectToLuaStack(CCObject* pObject, const char* typeName)
// functions for excute touch event
int CCLuaEngine::executeTouchEvent(int nHandler, int eventType, CCTouch *pTouch)
{
CCPoint pt = CCDirector::sharedDirector()->convertToGL(pTouch->locationInView(pTouch->view()));
CCPoint pt = CCDirector::sharedDirector()->convertToGL(pTouch->locationInView());
lua_pushinteger(m_state, eventType);
lua_pushnumber(m_state, pt.x);
lua_pushnumber(m_state, pt.y);
Expand All @@ -271,7 +271,7 @@ int CCLuaEngine::executeTouchesEvent(int nHandler, int eventType, CCSet *pTouche
while (it != pTouches->end())
{
pTouch = (CCTouch*)*it;
CCPoint pt = pDirector->convertToGL(pTouch->locationInView(pTouch->view()));
CCPoint pt = pDirector->convertToGL(pTouch->locationInView());
lua_pushnumber(m_state, pt.x);
lua_rawseti(m_state, -2, n++);
lua_pushnumber(m_state, pt.y);
Expand Down

0 comments on commit 98ec74e

Please sign in to comment.