[Gridflow-cvs] [svn] commit: r5357 - /trunk/src/gem.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 16:24:32 EDT 2010


Author: matju
Date: Wed Apr  7 16:24:31 2010
New Revision: 5357

Log:
rerefix BGRA

Modified:
    trunk/src/gem.cxx

Modified: trunk/src/gem.cxx
==============================================================================
--- trunk/src/gem.cxx (original)
+++ trunk/src/gem.cxx Wed Apr  7 16:24:31 2010
@@ -183,7 +183,11 @@
 		if (chans==3) {
 			uint8 *buf2 = buf+y*sx*im.csize;
 			T    *data2 = data;
+			#ifdef MACOSX
+			#define FOO buf2[2]=data2[0]; buf2[1]=data2[1]; buf2[0]=data2[2]; buf2[3]=255; data2+=3; buf2+=4;
+			#else
 			#define FOO buf2[0]=data2[0]; buf2[1]=data2[1]; buf2[2]=data2[2]; buf2[3]=255; data2+=3; buf2+=4;
+			#endif
 			int x;
 			for (x=0; x<(sx&-4); x+=4) {FOO FOO FOO FOO}
 			for (   ; x< sx    ; x++ ) {FOO}



More information about the Gridflow-cvs mailing list