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