Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/imlib2

Dir     : e17/libs/imlib2/loaders


Modified Files:
        loader_png.c 


Log Message:


pallet + transp fix

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/loaders/loader_png.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- loader_png.c        15 Feb 2004 10:18:11 -0000      1.22
+++ loader_png.c        30 Aug 2004 08:15:40 -0000      1.23
@@ -92,7 +92,11 @@
         im->w = (int)w32;
         im->h = (int)h32;
         if (color_type == PNG_COLOR_TYPE_PALETTE)
-           png_set_expand(png_ptr);
+         {
+            png_set_expand(png_ptr);
+            if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
+              hasa = 1;
+         }
         if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
            hasa = 1;
         if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to