win32u: Use NtGdiSetBrushOrg in NtGdiMaskBlt.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-09-14 21:52:23 +02:00 committed by Alexandre Julliard
parent c165a83478
commit ad4f9396e0
2 changed files with 17 additions and 1 deletions

View File

@ -810,7 +810,7 @@ BOOL WINAPI NtGdiMaskBlt( HDC hdcDest, INT nXDest, INT nYDest, INT nWidth, INT n
/* combine both using the mask as a pattern brush */
NtGdiSelectBrush(hDC2, hbrMask);
SetBrushOrgEx(hDC2, -xMask, -yMask, NULL);
NtGdiSetBrushOrg( hDC2, -xMask, -yMask, NULL );
/* (D & P) | (S & ~P) */
NtGdiBitBlt(hDC2, 0, 0, nWidth, nHeight, hDC1, 0, 0, 0xac0744, 0, 0 );
NtGdiSelectBrush(hDC2, hbrTmp);

View File

@ -884,6 +884,22 @@ BOOL WINAPI NtGdiGetAndSetDCDword( HDC hdc, UINT method, DWORD value, DWORD *pre
}
/***********************************************************************
* NtGdiSetBrushOrg (win32u.@)
*/
BOOL WINAPI NtGdiSetBrushOrg( HDC hdc, INT x, INT y, POINT *oldorg )
{
DC *dc;
if (!(dc = get_dc_ptr( hdc ))) return FALSE;
if (oldorg) *oldorg = dc->attr->brush_org;
dc->attr->brush_org.x = x;
dc->attr->brush_org.y = y;
release_dc_ptr( dc );
return TRUE;
}
/***********************************************************************
* NtGdiGetTransform (win32u.@)
*