summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/blackberry/qbbscreen.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/platforms/blackberry/qbbscreen.cpp b/src/plugins/platforms/blackberry/qbbscreen.cpp
index 30ee090..e62b391 100644
--- a/src/plugins/platforms/blackberry/qbbscreen.cpp
+++ b/src/plugins/platforms/blackberry/qbbscreen.cpp
@@ -139,9 +139,13 @@ QBBScreen::QBBScreen(screen_context_t context, screen_display_t display, int scr
mCurrentGeometry = mStartGeometry = QRect(0, 0, val[0], val[1]);
// Cache size of this display in millimeters
- const QSize screenSize = determineScreenSize(mDisplay, mPrimaryDisplay);
+ mStartPhysicalSize = determineScreenSize(mDisplay, mPrimaryDisplay);
- mCurrentPhysicalSize = mStartPhysicalSize = screenSize;
+ // swap physical dimensions when rotated orthogonally
+ if (mStartRotation == 90 || mStartRotation == 270)
+ mStartPhysicalSize.transpose();
+
+ mCurrentPhysicalSize = mStartPhysicalSize;
// We only create the root window if we are not the primary display.
if (mPrimaryDisplay)