[Gridflow-cvs] [svn] commit: r5417 - /trunk/src/videodev.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Apr 9 01:14:17 EDT 2010


Author: matju
Date: Fri Apr  9 01:14:16 2010
New Revision: 5417

Log:
fix conversion from rgb to rgba

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Fri Apr  9 01:14:16 2010
@@ -431,7 +431,7 @@
 			for(int y=0; y<sy; y++) {
 				uint8 *buf2 = buf+y*sx*bit_packing4->bytes;
 			        bit_packing4->unpack(sx,buf2,rgb);
-			        for (int x=0; x<sx; x++) buf2[4*x+3]=255; /* i hope this is correct. not tested. */
+			        for (int x=3; x<bs; x+=4) rgb[x]=255;
 			 	out.send(bs,rgb);
 			}
 		} else if (cs=="yuv") {



More information about the Gridflow-cvs mailing list