diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-04-21 12:29:34 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-04-22 11:31:51 +0000 |
commit | 7d8093df55f0bf76465add4ceb3732286971d849 (patch) | |
tree | 47f596ee648b65ab2bea589250380d3f6c9aa7b3 /src/plugins/platforms/windows/qwindowsscreen.cpp | |
parent | 6fbeef4c6b2323fc4b7856520c0f38f8139c9c54 (diff) |
Windows QPA: Fix High DPI scaling not becoming active when changing scaling
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ø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsscreen.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsscreen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |