mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-08 02:17:43 +08:00
udpate to qt 6.7.3
This commit is contained in:
@ -256,8 +256,9 @@ void QWindowsOleDropSource::createCursors()
|
||||
if (const QScreen *primaryScreen = QGuiApplication::primaryScreen())
|
||||
platformScreen = primaryScreen->handle();
|
||||
}
|
||||
Q_ASSERT(platformScreen);
|
||||
QPlatformCursor *platformCursor = platformScreen->cursor();
|
||||
QPlatformCursor *platformCursor = nullptr;
|
||||
if (platformScreen)
|
||||
platformCursor = platformScreen->cursor();
|
||||
|
||||
if (GetSystemMetrics (SM_REMOTESESSION) != 0) {
|
||||
/* Workaround for RDP issues with large cursors.
|
||||
@ -274,7 +275,7 @@ void QWindowsOleDropSource::createCursors()
|
||||
hotSpotScaleFactor = QHighDpiScaling::factor(platformScreen);
|
||||
pixmapScaleFactor = hotSpotScaleFactor / pixmap.devicePixelRatio();
|
||||
}
|
||||
QPixmap scaledPixmap = qFuzzyCompare(pixmapScaleFactor, 1.0)
|
||||
QPixmap scaledPixmap = (!hasPixmap || qFuzzyCompare(pixmapScaleFactor, 1.0))
|
||||
? pixmap
|
||||
: pixmap.scaled((QSizeF(pixmap.size()) * pixmapScaleFactor).toSize(),
|
||||
Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
|
Reference in New Issue
Block a user