diff --git a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp index 2e481ed84c..6149b386f6 100644 --- a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp +++ b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp @@ -475,13 +475,13 @@ NewCullingTest::NewCullingTest() Size size = Director::getInstance()->getWinSize(); auto sprite = Sprite::create("Images/btn-about-normal-vertical.png"); sprite->setRotation(5); - sprite->setPosition(Point(size.width/2,size.height/3)); + sprite->setPosition(Vector2(size.width/2,size.height/3)); sprite->setScale(2); addChild(sprite); auto sprite2 = Sprite::create("Images/btn-about-normal-vertical.png"); sprite2->setRotation(-85); - sprite2->setPosition(Point(size.width/2,size.height * 2/3)); + sprite2->setPosition(Vector2(size.width/2,size.height * 2/3)); sprite2->setScale(2); addChild(sprite2); diff --git a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h index 96c49a4581..5d657b4a70 100644 --- a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h +++ b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h @@ -131,7 +131,7 @@ protected: virtual ~NewCullingTest(); bool onTouchBegan(Touch* touch, Event *event); void onTouchMoved(Touch* touch, Event *event); - Point _lastPos; + Vector2 _lastPos; }; class VBOFullTest : public MultiSceneTest