summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoaintegration.mm
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-11-04 03:48:22 -0700
committerTony Sarajärvi <tony.sarajarvi@qt.io>2016-11-04 21:23:09 +0000
commit825bb10d9bf40587828e4e589b199a9ffec255ce (patch)
tree4164442389ff7420387c5b032dc1ca0e0b86dcbe /src/plugins/platforms/cocoa/qcocoaintegration.mm
parentbc4f672cc6a3ab07a967dbb88e769e4869ec1fbc (diff)
macOS: fix 32-bit builds
amends e39a436d0ca00fbcbef1428e32f74266c7a8d34d and 1ad6ae21f015ead3dcc4bed21a988f0d7d5d0d2d. Change-Id: Ib5c0b516ea2e5ec8d89f3e2e9888ef3eb8de6de4 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoaintegration.mm')
-rw-r--r--src/plugins/platforms/cocoa/qcocoaintegration.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.mm b/src/plugins/platforms/cocoa/qcocoaintegration.mm
index d48722b82f..7e9f554520 100644
--- a/src/plugins/platforms/cocoa/qcocoaintegration.mm
+++ b/src/plugins/platforms/cocoa/qcocoaintegration.mm
@@ -122,8 +122,8 @@ void QCocoaScreen::updateGeometry()
// At this point the geometry is in native coordinates, but the size
// is correct, which we take advantage of next when we map the native
// coordinates to the Qt coordinate system.
- m_geometry = QRectF::fromCGRect(m_nsScreen.frame).toRect();
- m_availableGeometry = QRectF::fromCGRect(m_nsScreen.visibleFrame).toRect();
+ m_geometry = QRectF::fromCGRect(NSRectToCGRect(m_nsScreen.frame)).toRect();
+ m_availableGeometry = QRectF::fromCGRect(NSRectToCGRect(m_nsScreen.visibleFrame)).toRect();
// The reference screen for the geometry is always the primary screen, but since
// we may be in the process of creating and registering the primary screen, we