mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed blinking for animated views
This commit is contained in:
@@ -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++) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user