mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
(macOS) Enabled startup animations.
This commit is contained in:
parent
5125f81c78
commit
b8e854b4ae
|
@ -207,13 +207,6 @@ void ViewController::goToStart(bool playTransition)
|
||||||
if (mRenderer->getSDLWindow() == nullptr)
|
if (mRenderer->getSDLWindow() == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
|
||||||
// The startup animations are very choppy on macOS as of moving to SDL 2.0.18 so the
|
|
||||||
// best user experience is to simply disable them on this OS.
|
|
||||||
if (mState.viewing == NOTHING)
|
|
||||||
playTransition = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// If the system view does not exist, then create it. We do this here as it would
|
// If the system view does not exist, then create it. We do this here as it would
|
||||||
// otherwise not be done if jumping directly into a specific game system on startup.
|
// otherwise not be done if jumping directly into a specific game system on startup.
|
||||||
if (!mSystemListView)
|
if (!mSystemListView)
|
||||||
|
@ -395,21 +388,12 @@ void ViewController::goToSystemView(SystemData* system, bool playTransition)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (applicationStartup) {
|
if (applicationStartup)
|
||||||
#if defined(__APPLE__)
|
|
||||||
// The startup animations are very choppy on macOS as of moving to SDL 2.0.18 so the
|
|
||||||
// best user experience is to simply disable them on this OS.
|
|
||||||
playViewTransition(ViewTransition::STARTUP_TO_SYSTEM, true);
|
|
||||||
#else
|
|
||||||
playViewTransition(ViewTransition::STARTUP_TO_SYSTEM);
|
playViewTransition(ViewTransition::STARTUP_TO_SYSTEM);
|
||||||
#endif
|
else if (playTransition)
|
||||||
}
|
|
||||||
else if (playTransition) {
|
|
||||||
playViewTransition(ViewTransition::GAMELIST_TO_SYSTEM);
|
playViewTransition(ViewTransition::GAMELIST_TO_SYSTEM);
|
||||||
}
|
else
|
||||||
else {
|
|
||||||
playViewTransition(ViewTransition::GAMELIST_TO_SYSTEM, true);
|
playViewTransition(ViewTransition::GAMELIST_TO_SYSTEM, true);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewController::goToSystem(SystemData* system, bool animate)
|
void ViewController::goToSystem(SystemData* system, bool animate)
|
||||||
|
|
Loading…
Reference in a new issue