Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
eimage.c
Log Message:
Fix grabbing bitmap icons.
===================================================================
RCS file: /cvs/e/e16/e/src/eimage.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- eimage.c 29 Mar 2006 22:56:29 -0000 1.2
+++ eimage.c 10 Apr 2006 18:25:46 -0000 1.3
@@ -324,9 +324,13 @@
int grab)
{
EImage *im;
+ Colormap cm;
+ cm = imlib_context_get_colormap();
+ imlib_context_set_colormap(None); /* Fix for grabbing bitmaps */
imlib_context_set_drawable(draw);
im = imlib_create_image_from_drawable(mask, x, y, w, h, grab);
+ imlib_context_set_colormap(cm);
return im;
}
-------------------------------------------------------
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