From 39c1f99446c0e4357b4a68261f6b12953ae05c79 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 27 May 2022 11:27:50 +1000 Subject: [PATCH] [client] splash: add back support for win:quickSplash --- client/src/overlay/splash.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/overlay/splash.c b/client/src/overlay/splash.c index ef6e0f9b..55f5ef00 100644 --- a/client/src/overlay/splash.c +++ b/client/src/overlay/splash.c @@ -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;