From d870115467bed454258ba5ac4a1e16e9eb3331aa Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Mon, 27 Sep 2021 16:05:34 -0700 Subject: [PATCH] Set SmoothPixmapTransform for playing-widget and context album art display --- src/context/contextalbum.cpp | 2 ++ src/widgets/playingwidget.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/context/contextalbum.cpp b/src/context/contextalbum.cpp index f254b9862..66ed283f3 100644 --- a/src/context/contextalbum.cpp +++ b/src/context/contextalbum.cpp @@ -114,6 +114,8 @@ void ContextAlbum::paintEvent(QPaintEvent*) { } void ContextAlbum::DrawImage(QPainter *p) { + + p->setRenderHint(QPainter::SmoothPixmapTransform); if (width() != prev_width_) { cover_loader_options_.desired_height_ = width() - kWidgetSpacing; diff --git a/src/widgets/playingwidget.cpp b/src/widgets/playingwidget.cpp index b650a4fa6..2f143dd1c 100644 --- a/src/widgets/playingwidget.cpp +++ b/src/widgets/playingwidget.cpp @@ -438,6 +438,8 @@ void PlayingWidget::paintEvent(QPaintEvent *e) { void PlayingWidget::DrawContents(QPainter *p) { + p->setRenderHint(QPainter::SmoothPixmapTransform); + switch (mode_) { case SmallSongDetails: // Draw the cover