From e50d0c6db200cc4e08a5d3d54a7663716f30979f Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 6 Sep 2015 11:44:19 +0200 Subject: [PATCH] get cardback image from theme --- cockatrice/src/carddatabase.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cockatrice/src/carddatabase.cpp b/cockatrice/src/carddatabase.cpp index 8b6da7e0..0a4cd876 100644 --- a/cockatrice/src/carddatabase.cpp +++ b/cockatrice/src/carddatabase.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include @@ -657,11 +656,7 @@ void CardInfo::getPixmap(QSize size, QPixmap &pixmap) loadPixmap(bigPixmap); if (bigPixmap.isNull()) { if (getName().isEmpty()) { - QSvgRenderer svg(QString("theme:back.svg")); - bigPixmap = QPixmap(svg.defaultSize()); - bigPixmap.fill(Qt::transparent); - QPainter painter(&bigPixmap); - svg.render(&painter); + pixmap = themeManager->getCardBackPixmap(); } else { pixmap = QPixmap(); // null return;