mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Changed the default origin from 0.5 0.5 to 0 0 for GIFAnimComponent and LottieAnimComponent.
This commit is contained in:
parent
b055493894
commit
f0fd5346c6
|
@ -52,7 +52,6 @@ GIFAnimComponent::GIFAnimComponent()
|
||||||
mAnimIO.tell_proc = tellProc;
|
mAnimIO.tell_proc = tellProc;
|
||||||
|
|
||||||
// Set component defaults.
|
// Set component defaults.
|
||||||
setOrigin(0.5f, 0.5f);
|
|
||||||
setSize(Renderer::getScreenWidth() * 0.2f, Renderer::getScreenHeight() * 0.2f);
|
setSize(Renderer::getScreenWidth() * 0.2f, Renderer::getScreenHeight() * 0.2f);
|
||||||
setPosition(Renderer::getScreenWidth() * 0.3f, Renderer::getScreenHeight() * 0.3f);
|
setPosition(Renderer::getScreenWidth() * 0.3f, Renderer::getScreenHeight() * 0.3f);
|
||||||
setDefaultZIndex(10.0f);
|
setDefaultZIndex(10.0f);
|
||||||
|
|
|
@ -53,7 +53,6 @@ LottieAnimComponent::LottieAnimComponent()
|
||||||
mMaxTotalFrameCache = static_cast<size_t>(maxTotalCache);
|
mMaxTotalFrameCache = static_cast<size_t>(maxTotalCache);
|
||||||
|
|
||||||
// Set component defaults.
|
// Set component defaults.
|
||||||
setOrigin(0.5f, 0.5f);
|
|
||||||
setSize(mRenderer->getScreenWidth() * 0.2f, mRenderer->getScreenHeight() * 0.2f);
|
setSize(mRenderer->getScreenWidth() * 0.2f, mRenderer->getScreenHeight() * 0.2f);
|
||||||
setPosition(mRenderer->getScreenWidth() * 0.3f, mRenderer->getScreenHeight() * 0.3f);
|
setPosition(mRenderer->getScreenWidth() * 0.3f, mRenderer->getScreenHeight() * 0.3f);
|
||||||
setDefaultZIndex(10.0f);
|
setDefaultZIndex(10.0f);
|
||||||
|
|
Loading…
Reference in a new issue