Huw Davies : gdi32: Take into account the mask's offset.
Module: wine Branch: master Commit: 3d58c354ae1be7567e1571af96d0c92864e31a02 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d58c354ae1be7567e1571af96... Author: Huw Davies <huw(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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);
participants (1)
-
Alexandre Julliard