From fa88ed151e8b03f40ea941343af75063b6e43e56 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 17 Jun 2019 08:43:37 +0200 Subject: Rise scaling factor for screen higher then 190 px/in density --- qml/mageiawelcome.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qml/mageiawelcome.py') diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index 310d2e8..0f19557 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -191,6 +191,9 @@ if __name__ == '__main__': sc = nr.startupcheck() factor = cl.factor(app) screen = app.primaryScreen() + # if density is high, use at least factor 2 to scale the initial window. Considering high is more than 190 px/inches. + if screen.logicalDotsPerInch() > 190 : + factor = max(2.0, factor) defaultHeight = min(700 * factor, screen.availableGeometry().height()) defaultWidth = min(1000 * factor, screen.availableGeometry().width()) centerPoint = screen.availableGeometry().center() -- cgit v1.2.1