diff --git a/cockatrice/src/pictureloader.cpp b/cockatrice/src/pictureloader.cpp index bac84958..5c86ca97 100644 --- a/cockatrice/src/pictureloader.cpp +++ b/cockatrice/src/pictureloader.cpp @@ -6,6 +6,7 @@ #include "thememanager.h" #include +#include #include #include #include @@ -572,7 +573,10 @@ void PictureLoader::getPixmap(QPixmap &pixmap, CardInfoPtr card, QSize size) // load the image and create a copy of the correct size QPixmap bigPixmap; if (QPixmapCache::find(key, &bigPixmap)) { - pixmap = bigPixmap.scaled(size, Qt::KeepAspectRatio, Qt::SmoothTransformation); + QScreen * screen = qApp->primaryScreen(); + int dpr = screen->devicePixelRatio(); + pixmap = bigPixmap.scaled(size * dpr, Qt::KeepAspectRatio, Qt::SmoothTransformation); + pixmap.setDevicePixelRatio(dpr); QPixmapCache::insert(sizeKey, pixmap); return; }