Fix album art rendering on High DPI displays

This commit is contained in:
Fletcher Dostie
2023-03-22 21:33:22 -07:00
committed by Jonas Kvinge
parent ca176c319d
commit bb43cc63ec
5 changed files with 23 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ class ImageUtils {
static QByteArray SaveImageToJpegData(const QImage &image = QImage());
static QByteArray FileToJpegData(const QString &filename);
static QPixmap TryLoadPixmap(const QUrl &automatic, const QUrl &manual, const QUrl &url = QUrl());
static QImage ScaleAndPad(const QImage &image, const bool scale, const bool pad, const int desired_height);
static QImage ScaleAndPad(const QImage &image, const bool scale, const bool pad, const int desired_height, const qreal device_pixel_ratio = 1.0f);
static QImage CreateThumbnail(const QImage &image, const bool pad, const QSize size);
static QImage GenerateNoCoverImage(const QSize size = QSize());