Merge pull request #12964 from ricardoquesada/bug12847_improved

improves the test to reproduce bug 12847
This commit is contained in:
Ricardo Quesada 2015-07-22 16:26:08 -07:00
commit d6dc1e3e7a
3 changed files with 5 additions and 4 deletions

View File

@ -15,6 +15,7 @@ bool Bug12847Layer::init()
{ {
if (BugsTestBase::init()) if (BugsTestBase::init())
{ {
Director::getInstance()->setProjection(Director::Projection::_2D);
auto _visibleSize = Director::getInstance()->getVisibleSize(); auto _visibleSize = Director::getInstance()->getVisibleSize();
//Create with Sprite //Create with Sprite
@ -53,10 +54,10 @@ bool Bug12847Layer::init()
void Bug12847Layer::update(float dt) void Bug12847Layer::update(float dt)
{ {
sprite1->setPositionY(sprite1->getPositionY() + 0.1f); sprite1->setPositionY(sprite1->getPositionY() + 0.01f);
sprite2->setPositionY(sprite2->getPositionY() + 0.1f); sprite2->setPositionY(sprite2->getPositionY() + 0.01f);
sprite3->setPositionY(sprite3->getPositionY() + 0.1f); sprite3->setPositionY(sprite3->getPositionY() + 0.01f);
sprite4->setPositionY(sprite4->getPositionY() + 0.1f); sprite4->setPositionY(sprite4->getPositionY() + 0.01f);
} }
void Bug12847Layer::onEnter() void Bug12847Layer::onEnter()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB