BugFix : NtGdiPatBlt did not call on NtGdiMaskBlt when source have been set in ROP

svn path=/trunk/; revision=33873
This commit is contained in:
Magnus Olsen 2008-06-06 23:37:41 +00:00
parent 72e6fde566
commit b879687075

View file

@ -1070,10 +1070,18 @@ NtGdiPatBlt(
DWORD ROP)
{
PGDIBRUSHOBJ BrushObj;
DC *dc = DC_LockDc(hDC);
DC *dc;
PDC_ATTR Dc_Attr;
BOOL UsesSource = ROP3_USES_SOURCE(ROP);
BOOL ret;
if (UsesSource)
{
/* in this case we call on GdiMaskBlt */
return NtGdiMaskBlt(hDC, XLeft, YLeft, Width, Height, 0,0,0,0,0,0,ROP,0);
}
dc = DC_LockDc(hDC);
if (dc == NULL)
{
SetLastWin32Error(ERROR_INVALID_HANDLE);