Commit cf5c35bc authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

Calculate starting position for a copyrect correctly.

parent 5477453c
......@@ -1461,7 +1461,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(LPDIRECT3DDEVICE8 iface, IDirect
/* Find where to start */
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 */
for (j=0; j<(r->bottom - r->top); j++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment