If calculated icon size is between 32 and 44, then use 32

This commit is contained in:
Craig Drummond
2016-06-17 17:06:22 +01:00
committed by Craig Drummond
parent c9f6f9b56b
commit 91f57ed354

View File

@@ -151,7 +151,11 @@ void TitleWidget::update(const Song &sng, const QIcon &icon, const QString &text
image->setVisible(false);
} else {
int iconPad=Utils::scaleForDpi(8);
image->setPixmap(Icon::getScaledPixmap(icon, image->width()-iconPad, image->height()-iconPad, 96));
int iconSize=image->width()-iconPad;
if (iconSize<44 && iconSize>=32) {
iconSize=32;
}
image->setPixmap(Icon::getScaledPixmap(icon, iconSize, iconSize, 96));
}
}