windowscodecs: fix copy_pixels when Y != 0

Vincent Povirk madewokherd+8cd9 at gmail.com
Sat Aug 8 22:36:50 CDT 2009


This starts the copy at the correct row if a non-zero Y is given.

-- 
Vincent Povirk
-------------- next part --------------
From 0421a906373a310173345093e36b767cc9a34676 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Sat, 8 Aug 2009 22:29:15 -0500
Subject: [PATCH 1/6] 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++)
         {
-- 
1.6.3.3


More information about the wine-patches mailing list