change draw to visit compatiable to cocos2d-x