Enlightenment CVS committal
Author : cedric
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/savers/png
Modified Files:
evas_image_save_png.c
Log Message:
* Make RGBA_IMAGE_HAS_ALPHA and RGBA_IMAGE_ALPHA_SPARSE part of
Image_Entry flag structure. This fix a bug with 16 bpp software engine.
* Change image loader module API to take any Image_Entry. Same goes
for evas_common_image_premul and evas_common_image_set_alpha_sparse.
* Use new eet API: eet_data_image_read_to_surface.
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/savers/png/evas_image_save_png.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- evas_image_save_png.c 12 Apr 2008 00:32:30 -0000 1.7
+++ evas_image_save_png.c 3 Jun 2008 09:09:39 -0000 1.8
@@ -62,7 +62,7 @@
#endif
}
- if (im->flags & RGBA_IMAGE_HAS_ALPHA)
+ if (im->cache_entry.flags.alpha)
{
data = malloc(im->cache_entry.w * im->cache_entry.h * sizeof(DATA32));
if (!data)
@@ -110,7 +110,7 @@
for (y = 0; y < im->cache_entry.h; y++)
{
- if (im->flags & RGBA_IMAGE_HAS_ALPHA)
+ if (im->cache_entry.flags.alpha)
row_ptr = (png_bytep) ptr;
else
{
@@ -130,7 +130,7 @@
png_destroy_write_struct(&png_ptr, (png_infopp) & info_ptr);
png_destroy_info_struct(png_ptr, (png_infopp) & info_ptr);
- if (im->flags & RGBA_IMAGE_HAS_ALPHA)
+ if (im->cache_entry.flags.alpha)
free(data);
fclose(f);
return 1;
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs