tablezone refactor and cleanup

This commit is contained in:
mildmongrel 2015-07-24 16:15:08 -07:00
parent 903292ad3b
commit ba50025e80
3 changed files with 164 additions and 83 deletions

View file

@ -2389,6 +2389,7 @@ void Player::setMirrored(bool _mirrored)
void Player::processSceneSizeChange(int newPlayerWidth)
{
// Extend table (and hand, if horizontal) to accomodate the new player width.
qreal tableWidth = newPlayerWidth - CARD_HEIGHT - 15 - counterAreaWidth - stack->boundingRect().width();
if (!settingsCache->getHorizontalHand())
tableWidth -= hand->boundingRect().width();