fixed blinking for animated views

This commit is contained in:
louis
2015-05-14 10:38:08 +02:00
parent 01b09d7424
commit 9a0217589e
6 changed files with 16 additions and 11 deletions

View File

@@ -344,6 +344,11 @@ void cPixmapContainer::SetDrawPortPoint(int num, const cPoint &Point) {
* to ensure that a proper lock is set before accessing pixmaps
****************************************************************************/
int cPixmapContainer::AnimationDelay(void) {
int animTime = max(shiftTime, fadeTime);
return animTime + 100;
}
void cPixmapContainer::FadeIn(void) {
if (!fadeTime) {
for (int i = 0; i < numPixmaps; i++) {

View File

@@ -72,6 +72,7 @@ protected:
void SetShiftMode(int mode) { shiftMode = mode; };
void SetStartPos(int posX, int posY) { startPos.SetX(posX); startPos.SetY(posY); };
bool IsAnimated(void) { return (shiftTime > 0); };
int AnimationDelay(void);
void FadeIn(void);
void FadeOut(void);
void ShiftIn(void);