Commit ad4f9396 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Use NtGdiSetBrushOrg in NtGdiMaskBlt.

parent c165a834
......@@ -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);
......
......@@ -885,6 +885,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.@)
*
* Undocumented
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment