Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_outbuf.c 


Log Message:


only 0 on init if image has alpha

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/buffer/evas_outbuf.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- evas_outbuf.c       16 Jul 2007 07:25:34 -0000      1.11
+++ evas_outbuf.c       20 Jan 2008 04:15:31 -0000      1.12
@@ -48,12 +48,12 @@
    if ((buf->depth == OUTBUF_DEPTH_RGB_24BPP_888_888) ||
        (buf->depth == OUTBUF_DEPTH_BGR_24BPP_888_888))
      bpp = 3;
-   for (y = 0; y < h; y++)
-     memset(((unsigned char *)(buf->dest)) + (y * buf->dest_row_bytes), 
-           0, w * bpp);
    if ((buf->depth == OUTBUF_DEPTH_ARGB_32BPP_8888_8888) &&
        (buf->dest) && (buf->dest_row_bytes == (buf->w * sizeof(DATA32))))
      {
+       for (y = 0; y < h; y++)
+         memset(((unsigned char *)(buf->dest)) + (y * buf->dest_row_bytes), 
+                0, w * bpp);
        buf->priv.back_buf = evas_common_image_new();
        buf->priv.back_buf->image = 
evas_common_image_surface_new(buf->priv.back_buf);
        buf->priv.back_buf->image->w = w;



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to