From 718f3b3a579e3c5ff1367d8490db488a9d6f34e4 Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Wed, 16 Apr 2014 10:47:29 +0800 Subject: [PATCH] remove warning message---continue --- tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp | 4 ++-- tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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