windowscodecs: Fix copy_pixels when Y != 0.

This commit is contained in:
Vincent Povirk 2009-08-08 22:29:15 -05:00 committed by Alexandre Julliard
parent c3ce7b5d63
commit 3d1bb79983

View file

@ -76,7 +76,7 @@ HRESULT copy_pixels(UINT bpp, const BYTE *srcbuffer,
const BYTE *src;
BYTE *dst;
src = srcbuffer + (row_offset / 8);
src = srcbuffer + (row_offset / 8) + srcstride * rc->Y;
dst = dstbuffer;
for (row=0; row < rc->Height; row++)
{