Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/fb
Modified Files:
evas_outbuf.c
Log Message:
warnigns cleanups + fb 32bpp transparency support for evas from celement
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/fb/evas_outbuf.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_outbuf.c 22 May 2005 02:49:49 -0000 1.4
+++ evas_outbuf.c 22 May 2005 03:02:15 -0000 1.5
@@ -230,7 +230,13 @@
*cx = 0; *cy = 0; *cw = w; *ch = h;
im = evas_common_image_create(w, h);
- return im;
+
+ /* handle framebuffers with alpha channel */
+ if (buf->priv.fb.fb->fb_var.transp.length > 0) {
+ im->flags |= RGBA_IMAGE_HAS_ALPHA;
+ memset(im->image->data, 0, w * h * sizeof(DATA32));
+ }
+ return im;
}
return NULL;
}
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs