Vincent Povirk : windowscodecs: Fix copy_pixels when Y != 0.

Alexandre Julliard julliard at winehq.org
Mon Aug 10 10:35:42 CDT 2009


Module: wine
Branch: master
Commit: 3d1bb79983ed146f0ffbec8a548fb9f36fb49e5e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3d1bb79983ed146f0ffbec8a548fb9f36fb49e5e

Author: Vincent Povirk <madewokherd at gmail.com>
Date:   Sat Aug  8 22:29:15 2009 -0500

windowscodecs: Fix copy_pixels when Y != 0.

---

 dlls/windowscodecs/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/windowscodecs/main.c b/dlls/windowscodecs/main.c
index ac63603..7ec5d41 100644
--- a/dlls/windowscodecs/main.c
+++ b/dlls/windowscodecs/main.c
@@ -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++)
         {




More information about the wine-cvs mailing list