[client] egl: don't fade the splash when restarting

This commit is contained in:
Geoffrey McRae 2020-08-11 14:54:48 +10:00
parent bfb12c74fb
commit 76e119f8ad
2 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
B2-rc3-11-gfa50b7824c+1
B2-rc3-12-gbfb12c74fb+1

View File

@ -233,8 +233,6 @@ void egl_on_restart(void * opaque)
eglDestroyContext(this->display, this->frameContext);
this->frameContext = NULL;
this->start = false;
this->waitFadeTime = 0;
this->waitDone = false;
}
void egl_on_resize(void * opaque, const int width, const int height, const LG_RendererRect destRect)
@ -575,6 +573,11 @@ bool egl_render(void * opaque, SDL_Window * window)
if (!this->waitDone)
egl_splash_render(this->splash, a, this->splashRatio);
}
else
{
if (!this->start)
egl_splash_render(this->splash, 1.0f, this->splashRatio);
}
if (this->showAlert)
{