diff options
| author | Christian Ehrlicher <[email protected]> | 2025-04-19 13:59:14 +0200 |
|---|---|---|
| committer | Christian Ehrlicher <[email protected]> | 2025-04-23 06:18:20 +0200 |
| commit | 78ae4177fac2007fa8faed67e70ea225298f3503 (patch) | |
| tree | 428b219f4501973d9622795049e421e158ddac5d /src/widgets/dialogs/qwizard_win.cpp | |
| parent | 83d964ea70050cc9778ceb07be09508577f55934 (diff) | |
Widgets: pass dpr to QIcon::pixmap()
Replace the last occourences of QIcon::pixmap() which do not pass the
current devicePixelRatio with the correct calls.
Pick-to: 6.9
Change-Id: I440944f784a991a88a8c6bb42e4c79f112bab8f6
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/widgets/dialogs/qwizard_win.cpp')
| -rw-r--r-- | src/widgets/dialogs/qwizard_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qwizard_win.cpp b/src/widgets/dialogs/qwizard_win.cpp index 2c4f049e888..64447f9728f 100644 --- a/src/widgets/dialogs/qwizard_win.cpp +++ b/src/widgets/dialogs/qwizard_win.cpp @@ -251,7 +251,7 @@ void QVistaHelper::drawTitleBar(QPainter *painter) const QPoint pos(origin.x() + iconLeft, origin.y() + verticalCenter - size / 2); const QPoint posDp = pos * QVistaHelper::m_devicePixelRatio; - const HICON hIcon = qt_pixmapToWinHICON(windowIcon.pixmap(size * QVistaHelper::m_devicePixelRatio)); + const HICON hIcon = qt_pixmapToWinHICON(windowIcon.pixmap(QSize(size, size), QVistaHelper::m_devicePixelRatio)); DrawIconEx(hdc, posDp.x(), posDp.y(), hIcon, 0, 0, 0, NULL, DI_NORMAL | DI_COMPAT); DestroyIcon(hIcon); } |
