From 7dcb26d4888a224d0da5c32ade7cd032532c9862 Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Fri, 5 Nov 2010 22:07:25 +0100 Subject: [PATCH 1/2] updated table rows in oracle importer --- oracle/src/oracleimporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oracle/src/oracleimporter.cpp b/oracle/src/oracleimporter.cpp index 2ccebf97..e4fd1aa3 100644 --- a/oracle/src/oracleimporter.cpp +++ b/oracle/src/oracleimporter.cpp @@ -116,9 +116,9 @@ CardInfo *OracleImporter::addCard(QString cardName, const QString &cardCost, con if ((mainCardType == "Land") || mArtifact) tableRow = 0; else if ((mainCardType == "Sorcery") || (mainCardType == "Instant")) - tableRow = 2; - else if (mainCardType == "Creature") tableRow = 3; + else if (mainCardType == "Creature") + tableRow = 2; card->setTableRow(tableRow); cardHash.insert(cardName, card); From 78247ac4b68f679f15f31c4d5cec86d8148653e8 Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Fri, 5 Nov 2010 22:20:20 +0100 Subject: [PATCH 2/2] lowered default table width --- cockatrice/src/tablezone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/tablezone.h b/cockatrice/src/tablezone.h index 4b2b5435..9f9f0650 100644 --- a/cockatrice/src/tablezone.h +++ b/cockatrice/src/tablezone.h @@ -11,7 +11,7 @@ private: static const int boxLineWidth = 10; static const int paddingY = 20; static const int marginX = 20; - static const int minWidth = 20 * CARD_WIDTH / 2; + static const int minWidth = 15 * CARD_WIDTH / 2; QMap gridPointWidth; int width, height;