Set SmoothPixmapTransform for playing-widget and context album art display
This commit is contained in:
parent
2b445fb563
commit
d870115467
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue