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>
This commit is contained in:
Dirk Hohndel 2017-04-14 16:57:09 -07:00
parent c00b14af9a
commit e42bf2cfa5

View file

@ -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];