fixed FadeOut bug

This commit is contained in:
louis 2015-03-13 18:07:33 +01:00
parent 229b1274a5
commit d5a91f36dc
2 changed files with 3 additions and 1 deletions

View File

@ -209,3 +209,5 @@ Version 0.2.2
Version 0.3.0
- checking setup conditions for viewelements
- fixed FadeOut bug

View File

@ -358,7 +358,7 @@ void cPixmapContainer::FadeOut(void) {
}
DoFlush();
int Delta = cTimeMs::Now() - Now;
if (Running() && (Delta < FadeFrameTime))
if (Delta < FadeFrameTime)
cCondWait::SleepMs(FadeFrameTime - Delta);
if ((int)(Now - Start) > fadeTime)
break;