Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/engines/xrender_x11


Modified Files:
        evas_engine.c 


Log Message:


umm... handle rgba dest properly...
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/modules/engines/xrender_x11/evas_engine.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evas_engine.c       2 Mar 2006 09:16:46 -0000       1.3
+++ evas_engine.c       8 Mar 2006 08:02:34 -0000       1.4
@@ -147,14 +147,17 @@
    re->xinf = _xr_image_info_get(re->disp, re->win, re->vis);
 
    if (re->output) _xr_render_surface_free(re->output);
-   re->output = _xr_render_surface_adopt(re->xinf, re->win, e->output.w, 
e->output.h, 0);
+   if (re->mask_output) _xr_render_surface_free(re->mask_output);
+   if (!re->mask)
+     re->output = _xr_render_surface_adopt(re->xinf, re->win, e->output.w, 
e->output.h, re->destination_alpha);
+   else
+     re->output = _xr_render_surface_adopt(re->xinf, re->win, e->output.w, 
e->output.h, 0);
    if (re->mask)
-     {
-       if (re->mask_output) _xr_render_surface_free(re->mask_output);
-       re->mask_output = _xr_render_surface_format_adopt(re->xinf, re->mask, 
-                                                         e->output.w, 
e->output.h,
-                                                         re->xinf->fmt1, 1);
-     }
+     re->mask_output = _xr_render_surface_format_adopt(re->xinf, re->mask, 
+                                                      e->output.w, e->output.h,
+                                                      re->xinf->fmt1, 1);
+   else
+     re->mask_output = NULL;
 }
 
 static void




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to