diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-04-14 16:57:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-14 16:57:09 -0700 |
commit | e42bf2cfa577a68d7f37dc1f4f78c58ce79536b2 (patch) | |
tree | c37bbf53f35baf9286f0225611c7d2d9f4f27499 /mobile-widgets/qmlprofile.cpp | |
parent | c00b14af9ace747509988ba570972501ad5347f6 (diff) | |
download | subsurface-e42bf2cfa577a68d7f37dc1f4f78c58ce79536b2.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlprofile.cpp')
-rw-r--r-- | mobile-widgets/qmlprofile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |