mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
c00b14af9a
commit
e42bf2cfa5
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue