Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/src
Modified Files:
api.c
Log Message:
bugsie! fixed!
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/api.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -3 -r1.91 -r1.92
--- api.c 13 Jul 2003 01:09:17 -0000 1.91
+++ api.c 1 Feb 2004 07:12:14 -0000 1.92
@@ -1669,11 +1669,23 @@
__imlib_FreeImage(im);
return NULL;
}
- __imlib_BlendImageToImage(im_old, im, 0, 0, 0, x, y, abs(width),
- abs(height), 0, 0, width, height, NULL,
- IMLIB_OP_COPY,
- ctx->cliprect.x, ctx->cliprect.y,
- ctx->cliprect.w, ctx->cliprect.h);
+ if (IMAGE_HAS_ALPHA(im_old))
+ {
+ SET_FLAG(im->flags, F_HAS_ALPHA);
+ __imlib_BlendImageToImage(im_old, im, 0, 0, 1, x, y, abs(width),
+ abs(height), 0, 0, width, height, NULL,
+ IMLIB_OP_COPY,
+ ctx->cliprect.x, ctx->cliprect.y,
+ ctx->cliprect.w, ctx->cliprect.h);
+ }
+ else
+ {
+ __imlib_BlendImageToImage(im_old, im, 0, 0, 0, x, y, abs(width),
+ abs(height), 0, 0, width, height, NULL,
+ IMLIB_OP_COPY,
+ ctx->cliprect.x, ctx->cliprect.y,
+ ctx->cliprect.w, ctx->cliprect.h);
+ }
return (Imlib_Image) im;
}
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs