Huw Davies : gdi32: Take into account the mask's offset.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 3 09:21:42 CST 2015


Module: wine
Branch: master
Commit: 3d58c354ae1be7567e1571af96d0c92864e31a02
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3d58c354ae1be7567e1571af96d0c92864e31a02

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Nov  3 11:07:44 2015 +0000

gdi32: Take into account the mask's offset.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);
 




More information about the wine-cvs mailing list