From 00077565abfabb29bfc451d4b73ff242aca2c7ab Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Wed, 11 Aug 2010 01:32:52 +0200 Subject: [PATCH] minor table layout bugfix --- cockatrice/src/player.cpp | 1 + cockatrice/src/tablezone.cpp | 2 +- common/server_game.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/player.cpp b/cockatrice/src/player.cpp index a6d5f024..3da0406b 100644 --- a/cockatrice/src/player.cpp +++ b/cockatrice/src/player.cpp @@ -254,6 +254,7 @@ void Player::rearrangeZones() table->setPos(base); } hand->updateOrientation(); + table->reorganizeCards(); updateBoundingRect(); rearrangeCounters(); } diff --git a/cockatrice/src/tablezone.cpp b/cockatrice/src/tablezone.cpp index bce8d299..33e88203 100644 --- a/cockatrice/src/tablezone.cpp +++ b/cockatrice/src/tablezone.cpp @@ -43,7 +43,7 @@ void TableZone::paint(QPainter *painter, const QStyleOptionGraphicsItem */*optio else painter->fillRect(boundingRect(), QBrush(bgPixmap)); painter->setPen(QColor(255, 255, 255, 40)); - qreal separatorY = 3 * (CARD_HEIGHT + paddingY) - paddingY / 2; + qreal separatorY = 3 * (CARD_HEIGHT + paddingY) + boxLineWidth - paddingY / 2; if (player->getMirrored()) separatorY = height - separatorY; painter->drawLine(QPointF(0, separatorY), QPointF(width, separatorY)); diff --git a/common/server_game.cpp b/common/server_game.cpp index e4ac5f89..438f4711 100644 --- a/common/server_game.cpp +++ b/common/server_game.cpp @@ -137,7 +137,7 @@ void Server_Game::startGameIfReady() query.exec(); } */ - setActivePlayer(0); + setActivePlayer(players.keys().first()); } void Server_Game::stopGameIfFinished()