skin refresh bugfix
This commit is contained in:
@@ -607,23 +607,27 @@ void gameTableImpl::applySettings(settingsDialogImpl* mySettingsDialog) {
|
|||||||
|
|
||||||
//Check for anti-peek mode
|
//Check for anti-peek mode
|
||||||
if(myStartWindow->getSession()->getCurrentGame()) {
|
if(myStartWindow->getSession()->getCurrentGame()) {
|
||||||
QPixmap tempCardsPixmapArray[2];
|
// check if human player is already active
|
||||||
int tempCardsIntArray[2];
|
if(myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyActiveStatus()) {
|
||||||
|
|
||||||
myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyCards(tempCardsIntArray);
|
QPixmap tempCardsPixmapArray[2];
|
||||||
if(myConfig->readConfigInt("AntiPeekMode")) {
|
int tempCardsIntArray[2];
|
||||||
holeCardsArray[0][0]->setPixmap(*flipside, TRUE);
|
|
||||||
tempCardsPixmapArray[0] = QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[0], 10)+".png"));
|
myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyCards(tempCardsIntArray);
|
||||||
holeCardsArray[0][0]->setHiddenFrontPixmap(tempCardsPixmapArray[0]);
|
if(myConfig->readConfigInt("AntiPeekMode")) {
|
||||||
holeCardsArray[0][1]->setPixmap(*flipside, TRUE);
|
holeCardsArray[0][0]->setPixmap(*flipside, TRUE);
|
||||||
tempCardsPixmapArray[1]= QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[1], 10)+".png"));
|
tempCardsPixmapArray[0] = QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[0], 10)+".png"));
|
||||||
holeCardsArray[0][1]->setHiddenFrontPixmap(tempCardsPixmapArray[1]);
|
holeCardsArray[0][0]->setHiddenFrontPixmap(tempCardsPixmapArray[0]);
|
||||||
}
|
holeCardsArray[0][1]->setPixmap(*flipside, TRUE);
|
||||||
else {
|
tempCardsPixmapArray[1]= QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[1], 10)+".png"));
|
||||||
tempCardsPixmapArray[0]= QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[0], 10)+".png"));
|
holeCardsArray[0][1]->setHiddenFrontPixmap(tempCardsPixmapArray[1]);
|
||||||
holeCardsArray[0][0]->setPixmap(tempCardsPixmapArray[0],FALSE);
|
}
|
||||||
tempCardsPixmapArray[1]= QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[1], 10)+".png"));
|
else {
|
||||||
holeCardsArray[0][1]->setPixmap(tempCardsPixmapArray[1],FALSE);
|
tempCardsPixmapArray[0]= QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[0], 10)+".png"));
|
||||||
|
holeCardsArray[0][0]->setPixmap(tempCardsPixmapArray[0],FALSE);
|
||||||
|
tempCardsPixmapArray[1]= QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[1], 10)+".png"));
|
||||||
|
holeCardsArray[0][1]->setPixmap(tempCardsPixmapArray[1],FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user