boardcards animation hanging gfx bugfix
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user