mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-22 20:57:06 +00:00
[client] splash: add back support for win:quickSplash
This commit is contained in:
parent
7e8849180d
commit
39c1f99446
@ -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)
|
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;
|
l_alpha -= 1.0f / TICK_RATE;
|
||||||
if (l_alpha <= 0.0f)
|
if (l_alpha <= 0.0f)
|
||||||
l_fadeDone = true;
|
l_fadeDone = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user