Fixed an issue where the static image would not always get rendered during Slide transitions.

This commit is contained in:
Leon Styhre 2021-07-03 13:52:47 +02:00
parent f59223927e
commit a0e587c19b
2 changed files with 7 additions and 1 deletions

View file

@ -27,7 +27,8 @@ public:
{
// Cubic ease out.
t -= 1;
cameraOut.translation() = -Vector3f().lerp(-mCameraStart.translation(), mTarget, t*t*t + 1);
cameraOut.translation() =
-Vector3f().lerp(-mCameraStart.translation(), mTarget, t * t * t + 1);
}
private:

View file

@ -404,6 +404,11 @@ void ViewController::goToGameList(SystemData* system)
mPreviousView.reset();
mPreviousView = nullptr;
}
else if (!mPreviousView && mState.viewing == GAME_LIST) {
// This is needed as otherwise the static image would not get rendered during the
// first Slide transition when coming from the System view.
mSkipView = getGameListView(system);
}
if (mState.viewing != SYSTEM_SELECT) {
mPreviousView = mCurrentView;