diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-06-02 10:19:06 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-06-02 14:50:54 +0200 |
commit | 13d95e415e0870fd13ebef8b888364d8b9ebb9e5 (patch) | |
tree | 434f68369c35542846894d9ae69f02f26308c098 /src/plugins/styles/windowsvista | |
parent | 873aa682c56b1c187e2c87b49050509db9d1b16b (diff) |
High DPI/Windows style: Fix potential crash when drawing buttons of maximized QMdiSubWindow
In QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(),
pass the correct rectangle (reflecting the correction factor)
to the function fixAlphaChannel().
Amends e56b8e1e59b6df7c7abd48b163abe6846849eb7a.
Pick-to: 5.15
Fixes: QTBUG-84613
Task-number: QTBUG-75927
Change-Id: I5357bb8c55ed26a50cc322ea7a05df4487212fb8
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/styles/windowsvista')
-rw-r--r-- | src/plugins/styles/windowsvista/qwindowsxpstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp b/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp index 67198e701c..e57ebfeeff 100644 --- a/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp +++ b/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp @@ -972,7 +972,7 @@ bool QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(XPThemeData &themeDa // Fix alpha values, if needed if (potentialInvalidAlpha) - wasAlphaFixed = fixAlphaChannel(rect); + wasAlphaFixed = fixAlphaChannel(drawRect); QImage::Format format; if ((partIsTransparent && !wasAlphaSwapped) || (!partIsTransparent && hasAlpha)) { |