boardcards animation hanging gfx bugfix

This commit is contained in:
doitux
2007-05-18 08:13:05 +00:00
parent 72e7d367d7
commit ace4d5b41a
3 changed files with 14 additions and 0 deletions
@@ -74,6 +74,8 @@ void MyCardsPixmapLabel::nextFadeOutFrame() {
void MyCardsPixmapLabel::startFlipCards(int speed, QPixmap frontPix, QPixmap *flipsidePix) {
stopFlipCards = FALSE;
QLabel::setPixmap(frontPix);
frameFlipCardsAction1Size = 1.0;
@@ -95,6 +97,15 @@ void MyCardsPixmapLabel::startFlipCards(int speed, QPixmap frontPix, QPixmap *fl
}
void MyCardsPixmapLabel::stopFlipCardsAnimation() {
flipCardsTimer->stop();
flipCardsAction1 = FALSE;
flipCardsAction2 = FALSE;
stopFlipCards = TRUE;
update();
}
void MyCardsPixmapLabel::nextFlipCardsFrame() {
if (frameFlipCardsAction1Size > 0.1 ) {