mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
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:
parent
628321cb61
commit
5afd0c7426
1 changed files with 4 additions and 0 deletions
|
@ -879,6 +879,10 @@ NtGdiStretchBlt(
|
||||||
IntGdiInitBrushInstance(&BrushInst, BrushObj, DCDest->XlateBrush);
|
IntGdiInitBrushInstance(&BrushInst, BrushObj, DCDest->XlateBrush);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Offset the brush */
|
||||||
|
BrushOrigin.x += DCDest->ptlDCOrig.x;
|
||||||
|
BrushOrigin.y += DCDest->ptlDCOrig.y;
|
||||||
|
|
||||||
/* Perform the bitblt operation */
|
/* Perform the bitblt operation */
|
||||||
Status = IntEngStretchBlt(&BitmapDest->SurfObj, &BitmapSrc->SurfObj,
|
Status = IntEngStretchBlt(&BitmapDest->SurfObj, &BitmapSrc->SurfObj,
|
||||||
NULL, DCDest->CombinedClip, XlateObj,
|
NULL, DCDest->CombinedClip, XlateObj,
|
||||||
|
|
Loading…
Reference in a new issue