mirror of
https://github.com/reactos/reactos.git
synced 2025-05-21 18:16:07 +00:00
Offset the source and destination rectangles as pointed out in bug #4107. Remove respective FIXME.
svn path=/trunk/; revision=39336
This commit is contained in:
parent
0c9b0cdd9d
commit
b4c66a205a
1 changed files with 5 additions and 1 deletions
|
@ -805,7 +805,6 @@ NtGdiStretchBlt(
|
|||
IntGdiSelectBrush(DCDest,Dc_Attr->hbrush);
|
||||
|
||||
/* Offset the destination and source by the origin of their DCs. */
|
||||
// FIXME: ptlDCOrig is in device coordinates!
|
||||
XOriginDest += DCDest->ptlDCOrig.x;
|
||||
YOriginDest += DCDest->ptlDCOrig.y;
|
||||
if (UsesSource)
|
||||
|
@ -818,11 +817,16 @@ NtGdiStretchBlt(
|
|||
DestRect.top = YOriginDest;
|
||||
DestRect.right = XOriginDest+WidthDest;
|
||||
DestRect.bottom = YOriginDest+HeightDest;
|
||||
IntLPtoDP(DCDest, (LPPOINT)&DestRect, 2);
|
||||
|
||||
SourceRect.left = XOriginSrc;
|
||||
SourceRect.top = YOriginSrc;
|
||||
SourceRect.right = XOriginSrc+WidthSrc;
|
||||
SourceRect.bottom = YOriginSrc+HeightSrc;
|
||||
if (UsesSource)
|
||||
{
|
||||
IntLPtoDP(DCSrc, (LPPOINT)&SourceRect, 2);
|
||||
}
|
||||
|
||||
/* Determine surfaces to be used in the bitblt */
|
||||
BitmapDest = SURFACE_LockSurface(DCDest->w.hBitmap);
|
||||
|
|
Loading…
Reference in a new issue