diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp index 141ad8e6e1..7e6df9f2fe 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp @@ -15,6 +15,7 @@ bool Bug12847Layer::init() { if (BugsTestBase::init()) { + Director::getInstance()->setProjection(Director::Projection::_2D); auto _visibleSize = Director::getInstance()->getVisibleSize(); //Create with Sprite @@ -53,10 +54,10 @@ bool Bug12847Layer::init() void Bug12847Layer::update(float dt) { - sprite1->setPositionY(sprite1->getPositionY() + 0.1f); - sprite2->setPositionY(sprite2->getPositionY() + 0.1f); - sprite3->setPositionY(sprite3->getPositionY() + 0.1f); - sprite4->setPositionY(sprite4->getPositionY() + 0.1f); + sprite1->setPositionY(sprite1->getPositionY() + 0.01f); + sprite2->setPositionY(sprite2->getPositionY() + 0.01f); + sprite3->setPositionY(sprite3->getPositionY() + 0.01f); + sprite4->setPositionY(sprite4->getPositionY() + 0.01f); } void Bug12847Layer::onEnter() diff --git a/tests/cpp-tests/Resources/Images/bug12847_sprite.png b/tests/cpp-tests/Resources/Images/bug12847_sprite.png index a4e42509a7..6f13b95c67 100644 Binary files a/tests/cpp-tests/Resources/Images/bug12847_sprite.png and b/tests/cpp-tests/Resources/Images/bug12847_sprite.png differ diff --git a/tests/cpp-tests/Resources/Images/bug12847_spriteframe.png b/tests/cpp-tests/Resources/Images/bug12847_spriteframe.png index b7fd950b19..b63a0cc1b5 100644 Binary files a/tests/cpp-tests/Resources/Images/bug12847_spriteframe.png and b/tests/cpp-tests/Resources/Images/bug12847_spriteframe.png differ