Set SmoothPixmapTransform for playing-widget and context album art display
This commit is contained in:
@@ -115,6 +115,8 @@ void ContextAlbum::paintEvent(QPaintEvent*) {
|
|||||||
|
|
||||||
void ContextAlbum::DrawImage(QPainter *p) {
|
void ContextAlbum::DrawImage(QPainter *p) {
|
||||||
|
|
||||||
|
p->setRenderHint(QPainter::SmoothPixmapTransform);
|
||||||
|
|
||||||
if (width() != prev_width_) {
|
if (width() != prev_width_) {
|
||||||
cover_loader_options_.desired_height_ = width() - kWidgetSpacing;
|
cover_loader_options_.desired_height_ = width() - kWidgetSpacing;
|
||||||
QImage image = ImageUtils::ScaleAndPad(image_original_, cover_loader_options_.scale_output_image_, cover_loader_options_.pad_output_image_, cover_loader_options_.desired_height_);
|
QImage image = ImageUtils::ScaleAndPad(image_original_, cover_loader_options_.scale_output_image_, cover_loader_options_.pad_output_image_, cover_loader_options_.desired_height_);
|
||||||
|
|||||||
@@ -438,6 +438,8 @@ void PlayingWidget::paintEvent(QPaintEvent *e) {
|
|||||||
|
|
||||||
void PlayingWidget::DrawContents(QPainter *p) {
|
void PlayingWidget::DrawContents(QPainter *p) {
|
||||||
|
|
||||||
|
p->setRenderHint(QPainter::SmoothPixmapTransform);
|
||||||
|
|
||||||
switch (mode_) {
|
switch (mode_) {
|
||||||
case SmallSongDetails:
|
case SmallSongDetails:
|
||||||
// Draw the cover
|
// Draw the cover
|
||||||
|
|||||||
Reference in New Issue
Block a user