From e42bf2cfa577a68d7f37dc1f4f78c58ce79536b2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 14 Apr 2017 16:57:09 -0700 Subject: QML UI: fix profile for device pixel ratio of 1.5 I think this is actually a typo - either way, seems to work correctly now. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlprofile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlprofile.cpp b/mobile-widgets/qmlprofile.cpp index cb665c0a0..855e798b5 100644 --- a/mobile-widgets/qmlprofile.cpp +++ b/mobile-widgets/qmlprofile.cpp @@ -40,7 +40,7 @@ void QMLProfile::paint(QPainter *painter) double dpr = devicePixelRatio(); double magicValues[] = { 0.0, 0.1, 0.25, 0.33, 0.375, 0.40, 0.42}; qreal magicShiftFactor = 0.0; - if (dpr <= 1.5) { + if (dpr < 1.5) { magicShiftFactor = magicValues[0]; } else if (dpr > 6.0) { magicShiftFactor = magicValues[6]; -- cgit v1.2.3-70-g09d2