mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
Hopefully fixed the "black screen" bug.
At least for input configuration.
This commit is contained in:
parent
120f9a4e7b
commit
b6577e630d
|
@ -11,7 +11,7 @@
|
||||||
#include "../animations/LambdaAnimation.h"
|
#include "../animations/LambdaAnimation.h"
|
||||||
|
|
||||||
ViewController::ViewController(Window* window)
|
ViewController::ViewController(Window* window)
|
||||||
: GuiComponent(window), mCurrentView(nullptr), mCamera(Eigen::Affine3f::Identity()), mFadeOpacity(1), mLockInput(false)
|
: GuiComponent(window), mCurrentView(nullptr), mCamera(Eigen::Affine3f::Identity()), mFadeOpacity(0), mLockInput(false)
|
||||||
{
|
{
|
||||||
// slot 1 so the fade carries over
|
// slot 1 so the fade carries over
|
||||||
setAnimation(new LambdaAnimation([&] (float t) { mFadeOpacity = lerp<float>(1.0f, 0.0f, t); }, 900), nullptr, false, 1);
|
setAnimation(new LambdaAnimation([&] (float t) { mFadeOpacity = lerp<float>(1.0f, 0.0f, t); }, 900), nullptr, false, 1);
|
||||||
|
|
Loading…
Reference in a new issue