From f900da75823f4cafb4fe3b4bc3d00d5b0abd62b6 Mon Sep 17 00:00:00 2001 From: Kevin Krammer Date: Wed, 21 Mar 2012 13:01:55 +0100 Subject: Need to check new rotation against initial rotation instead of current Only swap width/height of initial geometry if orthogonal to initial rotation not orthogonal to current rotation Change-Id: I825954e98dee6c0d07a284307dfb8e1f9fd538e6 Reviewed-by: Robin Burchell Reviewed-by: Sean Harmer --- src/plugins/platforms/qnx/qqnxscreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/platforms/qnx/qqnxscreen.cpp b/src/plugins/platforms/qnx/qqnxscreen.cpp index e0e3d6d57d..cd77c3088a 100644 --- a/src/plugins/platforms/qnx/qqnxscreen.cpp +++ b/src/plugins/platforms/qnx/qqnxscreen.cpp @@ -207,7 +207,7 @@ void QQnxScreen::setRotation(int rotation) m_rootWindow->setRotation(rotation); // Swap dimensions if we've rotated 90 or 270 from initial orientation - if (isOrthogonal(m_currentRotation, rotation)) { + if (isOrthogonal(m_initialRotation, rotation)) { m_currentGeometry = QRect(0, 0, m_initialGeometry.height(), m_initialGeometry.width()); m_currentPhysicalSize = QSize(m_initialPhysicalSize.height(), m_initialPhysicalSize.width()); } else { -- cgit v1.2.3