diff options
author | louis <louis.braun@gmx.de> | 2015-05-14 10:38:08 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-05-14 10:38:08 +0200 |
commit | 9a0217589ef98f0af13bd623a6e7870d566779f6 (patch) | |
tree | 67eb8e9850b8609ad24e93bd3460d7c0ec914dd2 /libcore | |
parent | 01b09d742440727661d69bed76710b9d79e2c912 (diff) | |
download | vdr-plugin-skindesigner-9a0217589ef98f0af13bd623a6e7870d566779f6.tar.gz vdr-plugin-skindesigner-9a0217589ef98f0af13bd623a6e7870d566779f6.tar.bz2 |
fixed blinking for animated views
Diffstat (limited to 'libcore')
-rw-r--r-- | libcore/pixmapcontainer.c | 5 | ||||
-rw-r--r-- | libcore/pixmapcontainer.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libcore/pixmapcontainer.c b/libcore/pixmapcontainer.c index 0391a64..c60ba54 100644 --- a/libcore/pixmapcontainer.c +++ b/libcore/pixmapcontainer.c @@ -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++) { diff --git a/libcore/pixmapcontainer.h b/libcore/pixmapcontainer.h index 20e2c66..a116da0 100644 --- a/libcore/pixmapcontainer.h +++ b/libcore/pixmapcontainer.h @@ -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); |