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 e56b8e1e59.
Pick-to: 5.15
Fixes: QTBUG-84613
Task-number: QTBUG-75927
Change-Id: I5357bb8c55ed26a50cc322ea7a05df4487212fb8
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
bb10
parent
873aa682c5
commit
13d95e415e
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue