From e7b2f12c600ca6fce90b79d834d2329740ffebf7 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Sun, 14 Aug 2016 19:23:03 +0200 Subject: [PATCH] Do not scale for hidpi Let Qt handle this. --- ui/Units.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/Units.qml b/ui/Units.qml index dbcbe98..c847011 100644 --- a/ui/Units.qml +++ b/ui/Units.qml @@ -89,7 +89,8 @@ Item { function dp(x) { // FIXME: This won't work because Units is a singleton and is bound to the first // screen that is available during its creation - return x * Screen.devicePixelRatio; + //return x * Screen.devicePixelRatio; + return x; return x * (((Screen.pixelDensity * 25.4) / (Screen.logicalPixelDensity * 25.4)) / Screen.devicePixelRatio); }