mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed bug that currentelement is not flushed if fadetime = 0
This commit is contained in:
parent
803143ae3a
commit
0aab775201
@ -198,11 +198,12 @@ void cAnimation::Scroll(void) {
|
||||
void cAnimation::Detach(void) {
|
||||
if (waitOnWakeup) {
|
||||
Wait();
|
||||
int delay = 100 + detachable->Delay();
|
||||
Sleep(delay);
|
||||
int delay = 50 + detachable->Delay();
|
||||
Sleep(delay);
|
||||
} else {
|
||||
int delay = detachable->Delay();
|
||||
Sleep(delay);
|
||||
if (delay > 0)
|
||||
Sleep(delay);
|
||||
}
|
||||
if (!Running()) return;
|
||||
detachable->ParseDetached();
|
||||
|
@ -463,7 +463,8 @@ bool cViewElement::Parse(bool forced) {
|
||||
return true;
|
||||
}
|
||||
delete detacher;
|
||||
detacher = new cAnimation((cDetachable*)this, waitOnWakeup, startAnimation);
|
||||
bool isAnimated = (FadeTime() > 0) || (ShiftTime() > 0);
|
||||
detacher = new cAnimation((cDetachable*)this, waitOnWakeup, startAnimation && isAnimated);
|
||||
detacher->Start();
|
||||
startAnimation = false;
|
||||
init = false;
|
||||
|
Loading…
Reference in New Issue
Block a user