[client] splash: add back support for win:quickSplash

This commit is contained in:
Geoffrey McRae 2022-05-27 11:27:50 +10:00
parent 7e8849180d
commit 39c1f99446

View File

@ -154,8 +154,14 @@ static int splash_render(void * udata, bool interactive, struct Rect * windowRec
static bool splash_tick(void * udata, unsigned long long tickCount)
{
if (!l_show && l_alpha > 0.0f)
if (!l_show && !l_fadeDone)
{
if (g_params.quickSplash)
{
l_fadeDone = true;
return true;
}
l_alpha -= 1.0f / TICK_RATE;
if (l_alpha <= 0.0f)
l_fadeDone = true;