diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-03-10 11:13:59 +0100 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2020-03-13 13:12:18 +0000 |
commit | d8ab719c0890195cfce0fb6d4c76b3664d6f3a9d (patch) | |
tree | 1d05dc902dcec03a1523e5e03ffda287e4ba6e71 /src/plugins/platforms/windows/qwindowscontext.cpp | |
parent | bcdf49bcc6c357c9c30708e2e95ce4b8dbeb9f8a (diff) |
Fix double scaling of SVG icons on high DPI screens
On a high-dpi screen and AA_UseHighDpiPixmaps set, QIcon will ask its
engine for a scaled-up pixmap. When the icon has been created from a
theme, the engine is a QIconLoaderEngine. For a SVG icon, that engine
would recursively use QIcon to load the scaled-up pixmap, leading to
double scale-up. Fix by bypassing the QIcon API in the SVG case,
loading the SVG icon directly from the SVG icon engine.
Done-with: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Fixes: QTBUG-73587
Fixes: QTBUG-75039
Change-Id: I7fba02b6454decb5fcbca9c5a092e75954261dfd
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowscontext.cpp')
0 files changed, 0 insertions, 0 deletions