ICCVID: correct geometry error

Mike McCormack mike at codeweavers.com
Wed Mar 17 02:02:14 CST 2004


ChangeLog:
* correct geometry error in the ICCVID codec
-------------- next part --------------
Index: dlls/iccvid/iccvid.c
===================================================================
RCS file: /home/wine/wine/dlls/iccvid/iccvid.c,v
retrieving revision 1.3
diff -u -r1.3 iccvid.c
--- dlls/iccvid/iccvid.c	16 Feb 2004 20:34:18 -0000	1.3
+++ dlls/iccvid/iccvid.c	17 Mar 2004 07:16:07 -0000
@@ -148,7 +148,7 @@
 int row_inc = stride/4;
 
 #ifndef ORIGINAL
-    vptr += row_inc*3;
+    vptr += stride*3;
 #endif
     vptr[0] = rgb = cb->rgb0; vptr[1] = rgb;
     vptr[2] = rgb = cb->rgb1; vptr[3] = rgb;
@@ -184,7 +184,7 @@
 int row_inc = stride/4;
 
 #ifndef ORIGINAL
-    vptr += row_inc*3;
+    vptr += stride*3;
 #endif
     vptr[0] = cb0->rgb0;
     vptr[1] = cb0->rgb1;
@@ -270,7 +270,7 @@
 #endif
 
 #ifndef ORIGINAL
-    vptr += (3*row_inc);
+    vptr += (3*stride);
 #endif
     *vptr++ = b = cb->b[0]; *vptr++ = g = cb->g[0]; *vptr++ = r = cb->r[0];
     *vptr++ = b; *vptr++ = g; *vptr++ = r;
@@ -317,7 +317,7 @@
 #endif
 
 #ifndef ORIGINAL
-    vptr += (3*row_inc);
+    vptr += (3*stride);
 #endif
     *vptr++ = cb0->b[0]; *vptr++ = cb0->g[0]; *vptr++ = cb0->r[0];
     *vptr++ = cb0->b[1]; *vptr++ = cb0->g[1]; *vptr++ = cb0->r[1];


More information about the wine-patches mailing list