Windows: Transform regions of window masks correctly.
Add missing transformation for first rectangle of a region consisting of multiple rectangles. Task-number: QTBUG-41300 Change-Id: I1a25c422c93ceade79de79d5c49891e0a7211943 Reviewed-by: MihailNaydenov <garfieldhq@yahoo.com> Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
This commit is contained in:
parent
97a65e1980
commit
24edd8afdc
@ -1826,7 +1826,7 @@ static HRGN qRegionToWinRegion(const QRegion ®ionDip)
|
||||
const int rectCount = rects.size();
|
||||
if (rectCount == 1)
|
||||
return createRectRegion(QWindowsScaling::mapToNative(regionDip.boundingRect()));
|
||||
HRGN hRegion = createRectRegion(rects.front());
|
||||
HRGN hRegion = createRectRegion(QWindowsScaling::mapToNative(rects.front()));
|
||||
for (int i = 1; i < rectCount; ++i)
|
||||
addRectToWinRegion(QWindowsScaling::mapToNative(rects.at(i)), &hRegion);
|
||||
return hRegion;
|
||||
|
Loading…
Reference in New Issue
Block a user