From 7d8093df55f0bf76465add4ceb3732286971d849 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 21 Apr 2020 12:29:34 +0200 Subject: [PATCH] Windows QPA: Fix High DPI scaling not becoming active when changing scaling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When changing scaling from 100%, at which High DPI scaling is inactive, to something larger, High DPI scaling does not become active. Update the factors when screens are refreshed. Pick-to: 5.15 Task-number: QTBUG-77302 Task-number: QTBUG-77136 Task-number: QTBUG-82267 Change-Id: Iebbc29ced2f23af9db4d67839458848245e2db1d Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/windows/qwindowsscreen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/windows/qwindowsscreen.cpp b/src/plugins/platforms/windows/qwindowsscreen.cpp index 9a4f8d152c..8850d8cdd4 100644 --- a/src/plugins/platforms/windows/qwindowsscreen.cpp +++ b/src/plugins/platforms/windows/qwindowsscreen.cpp @@ -567,6 +567,7 @@ bool QWindowsScreenManager::handleScreenChanges() } // not lock screen if (primaryScreenChanged) QWindowsTheme::instance()->refreshFonts(); + QHighDpiScaling::updateHighDpiScaling(); return true; }