Enlightenment CVS committal

Author  : raster
Project : e17
Module  : proto

Dir     : e17/proto/gfx_routines


Modified Files:
        pixel_op.c 


Log Message:


oops- fix color checks

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/gfx_routines/pixel_op.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- pixel_op.c  27 Jan 2006 11:55:03 -0000      1.1
+++ pixel_op.c  28 Jan 2006 02:46:33 -0000      1.2
@@ -9,7 +9,7 @@
 
 static Pixel_Op_Func op_table
   [PIXEL_OP_LAST]
-  [2]/*src p*/ [2]/*src m*/ [2]/*src c*/ [3]/*src alpha or sparse alpha*/
+  [2]/*src p*/ [2]/*src m*/ [3]/*src c*/ [3]/*src alpha or sparse alpha*/
   [2]/*dst p or m*/[2]/*dst alpha */
   [5]/*CPU*/
   ;
@@ -19,7 +19,8 @@
 #define S_MN 0
 #define S_M1 1
 #define S_CN 0
-#define S_C1 1
+#define S_CA 1
+#define S_C1 2
 #define S_AN 0
 #define S_A1 1
 #define S_AS 2
@@ -197,7 +198,8 @@
    DATA8 dpm = D_P, da = D_AN;
    
    if (params->src.c == 0xffffffff) sc = S_CN;
-   else if ((params->src.c & 0xff) == 0) return NULL;
+   else if ((params->src.c & 0xff000000) == 0x00000000) return NULL;
+   else if ((params->src.c & 0x00ffffff) == 0x00ffffff) src = S_CA;
    if (params->src.p) sp = S_P1;
    if (params->src.m) sm = S_M1;
    sa += params->src.alpha;




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to