skin refresh bugfix

This commit is contained in:
doitux
2009-04-03 08:35:10 +00:00
parent 1aec46e3e2
commit 2e28dfc83b
+21 -17
View File
@@ -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);
}
} }
} }