gdi32: Take into account the mask's offset.
Huw Davies
huw at codeweavers.com
Tue Nov 3 05:07:44 CST 2015
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/gdi32/bitblt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/gdi32/bitblt.c b/dlls/gdi32/bitblt.c
index d427070..d2b3de2 100644
--- a/dlls/gdi32/bitblt.c
+++ b/dlls/gdi32/bitblt.c
@@ -800,6 +800,7 @@ BOOL WINAPI MaskBlt(HDC hdcDest, INT nXDest, INT nYDest,
/* combine both using the mask as a pattern brush */
SelectObject(hDC2, hbrMask);
+ SetBrushOrgEx(hDC2, -xMask, -yMask, NULL);
BitBlt(hDC2, 0, 0, nWidth, nHeight, hDC1, 0, 0, 0xac0744 ); /* (D & P) | (S & ~P) */
SelectObject(hDC2, hbrTmp);
--
1.8.0
More information about the wine-patches
mailing list