summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKari Pihkala <kari.pihkala@gmail.com>2014-03-18 10:16:19 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-03 11:07:07 +0200
commitbdf55f62a258cbd5e3844775a992415e22373387 (patch)
tree8410b1554e4e0b1d865e4478e0b1bb13add6b2d7
parentacebf6771236a31889c1e888f3ffc5aee1ab9124 (diff)
Change the hidpi cursor hotspot coordinate mapping
All hidpi coordinates in Qt are device independent points and the hidpi cursor hotspot should follow that convention. Change-Id: Id5295cae7a463e9a3ea85d2b0a18a5020dc97656 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
-rw-r--r--src/plugins/platforms/cocoa/qcocoacursor.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoacursor.mm b/src/plugins/platforms/cocoa/qcocoacursor.mm
index 592bfc8e50..b81b9a0b1c 100644
--- a/src/plugins/platforms/cocoa/qcocoacursor.mm
+++ b/src/plugins/platforms/cocoa/qcocoacursor.mm
@@ -308,8 +308,7 @@ NSCursor *QCocoaCursor::createCursorFromBitmap(const QBitmap *bitmap, const QBit
NSCursor *QCocoaCursor::createCursorFromPixmap(const QPixmap pixmap, const QPoint hotspot)
{
- NSPoint hotSpot = NSMakePoint(hotspot.x() / pixmap.devicePixelRatio(),
- hotspot.y() / pixmap.devicePixelRatio());
+ NSPoint hotSpot = NSMakePoint(hotspot.x(), hotspot.y());
NSImage *nsimage;
if (pixmap.devicePixelRatio() > 1.0) {
QSize layoutSize = pixmap.size() / pixmap.devicePixelRatio();