From 24edd8afdc936b0a73095e4f735a466653558a1e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 1 Oct 2014 12:11:44 +0200 Subject: [PATCH] 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 Reviewed-by: Alessandro Portale --- src/plugins/platforms/windows/qwindowswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 15c199f6dc..dd9b9de0b6 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -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;