Cocoa: Make High DPI drag cursor work
Change-Id: Ide4bc50ab7173529a00fe60a04204bad0b3f275e Task-id: QTBUG-60769 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
579d0cb2be
commit
d0736e9d17
@ -2068,6 +2068,7 @@ static QPoint mapWindowCoordinates(QWindow *source, QWindow *target, QPoint poin
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
NSImage *nsimage = qt_mac_create_nsimage(pixmapCursor);
|
NSImage *nsimage = qt_mac_create_nsimage(pixmapCursor);
|
||||||
|
nsimage.size = NSSizeFromCGSize((pixmapCursor.size() / pixmapCursor.devicePixelRatioF()).toCGSize());
|
||||||
nativeCursor = [[NSCursor alloc] initWithImage:nsimage hotSpot:NSZeroPoint];
|
nativeCursor = [[NSCursor alloc] initWithImage:nsimage hotSpot:NSZeroPoint];
|
||||||
[nsimage release];
|
[nsimage release];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user