Evgeniy Boltik <bstsoft@narod.ru>

- Brush's origin is always (0,0) of a window, not a screen. Offset it accordingly in NtGdiStretchBlt.
See issue #4147 for more details.

svn path=/trunk/; revision=40040
This commit is contained in:
Aleksey Bragin 2009-03-15 17:00:13 +00:00
parent 628321cb61
commit 5afd0c7426

View file

@ -879,6 +879,10 @@ NtGdiStretchBlt(
IntGdiInitBrushInstance(&BrushInst, BrushObj, DCDest->XlateBrush);
}
/* Offset the brush */
BrushOrigin.x += DCDest->ptlDCOrig.x;
BrushOrigin.y += DCDest->ptlDCOrig.y;
/* Perform the bitblt operation */
Status = IntEngStretchBlt(&BitmapDest->SurfObj, &BitmapSrc->SurfObj,
NULL, DCDest->CombinedClip, XlateObj,