Windows QPA: Fix blurry title icons with fractional scale factor
Request the icon pixmaps with DPR=1. Fixes: QTBUG-90363 Change-Id: I789a72e2ed3379c81c68e1074069823bf633cf2f Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
e74fd6897b
commit
341b0ef501
@ -2936,7 +2936,8 @@ void QWindowsWindow::setEnabled(bool enabled)
|
|||||||
static HICON createHIcon(const QIcon &icon, int xSize, int ySize)
|
static HICON createHIcon(const QIcon &icon, int xSize, int ySize)
|
||||||
{
|
{
|
||||||
if (!icon.isNull()) {
|
if (!icon.isNull()) {
|
||||||
const QPixmap pm = icon.pixmap(icon.actualSize(QSize(xSize, ySize)));
|
// QTBUG-90363, request DPR=1 for the title bar.
|
||||||
|
const QPixmap pm = icon.pixmap(icon.actualSize(QSize(xSize, ySize)), 1);
|
||||||
if (!pm.isNull())
|
if (!pm.isNull())
|
||||||
return qt_pixmapToWinHICON(pm);
|
return qt_pixmapToWinHICON(pm);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user