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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 5 20:00:58 EDT 2010


Author: matju
Date: Mon Apr  5 20:00:58 2010
New Revision: 5324

Log:
[#from_pix]: preserve alpha channel

Modified:
    trunk/src/gem.cxx

Modified: trunk/src/gem.cxx
==============================================================================
--- trunk/src/gem.cxx (original)
+++ trunk/src/gem.cxx Mon Apr  5 20:00:58 2010
@@ -246,9 +246,8 @@
 	}
 };
 \def 0 colorspace (t_symbol *s) {
-	uint32 rgba[4] = {0x000000ff,0x0000ff00,0x00ff0000,0x00000000}; 
-	uint32 bgra[4] = {0x0000ff00,0x00ff0000,0xff000000,0x00000000}; 
-//	uint32 bgra[4] = {0xff000000,0x00ff0000,0x0000ff00,0x00000000}; 
+	static uint32 rgba[4] = {0x000000ff,0x0000ff00,0x00ff0000,0xff000000};
+	static uint32 bgra[4] = {0x0000ff00,0x00ff0000,0xff000000,0x000000ff}; // really argb 
 	if (s==gensym("rgb" )) {
 		channels=3;
 		bp_rgba = new BitPacking(is_le(),4,3,rgba);



More information about the Gridflow-cvs mailing list