Calculate starting position for a copyrect correctly.

This commit is contained in:
Jason Edmeades 2003-01-09 06:02:39 +00:00 committed by Alexandre Julliard
parent 5477453cc6
commit cf5c35bc81
1 changed files with 1 additions and 1 deletions

View File

@ -1461,7 +1461,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(LPDIRECT3DDEVICE8 iface, IDirect
/* Find where to start */ /* Find where to start */
from = copyfrom + (r->top * pitchFrom) + (r->left * bytesPerPixel); from = copyfrom + (r->top * pitchFrom) + (r->left * bytesPerPixel);
to = copyto + (p->y * pitchFrom) + (p->x * bytesPerPixel); to = copyto + (p->y * pitchTo) + (p->x * bytesPerPixel);
/* Copy line by line */ /* Copy line by line */
for (j=0; j<(r->bottom - r->top); j++) { for (j=0; j<(r->bottom - r->top); j++) {