diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/uikit/quikitscreen.mm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/platforms/uikit/quikitscreen.mm b/src/plugins/platforms/uikit/quikitscreen.mm index 1a874b1..a35a3cd 100644 --- a/src/plugins/platforms/uikit/quikitscreen.mm +++ b/src/plugins/platforms/uikit/quikitscreen.mm @@ -65,17 +65,17 @@ QUIKitScreen::QUIKitScreen(int screenIndex) m_depth = 24; const qreal inch = 25.4; - qreal dpi = 160.; - int dragDistance = 12; + qreal unscaledDpi = 160.; + int dragDistance = 12 * scale; if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { - dpi = 132.; - dragDistance = 10; + unscaledDpi = 132.; + dragDistance = 10 * scale; } - m_physicalSize = QSize(qRound(bounds.size.width * inch / dpi), qRound(bounds.size.height * inch / dpi)); + m_physicalSize = QSize(qRound(bounds.size.width * inch / unscaledDpi), qRound(bounds.size.height * inch / unscaledDpi)); qApp->setStartDragDistance(dragDistance); QFont font; // system font is helvetica, so that is fine already - font.setPixelSize([UIFont systemFontSize]); + font.setPixelSize([UIFont systemFontSize] * scale); qApp->setFont(font); [pool release]; |