Enlightenment CVS committal Author : raster Project : e17 Module : libs/imlib2
Dir : e17/libs/imlib2/src/modules/loaders Modified Files: loader_tiff.c Log Message: tiff patch - simon =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/modules/loaders/loader_tiff.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- loader_tiff.c 1 Dec 2005 07:51:51 -0000 1.4 +++ loader_tiff.c 6 Jan 2006 15:39:46 -0000 1.5 @@ -79,6 +79,7 @@ uint32 *pixel, pixel_value; int i, j, dy, rast_offset; DATA32 *buffer_pixel, *buffer = img->image->data; + int alpha_premult = (EXTRASAMPLE_UNASSALPHA==img->rgba.alpha); image_width = img->image->w; image_height = img->image->h; @@ -104,7 +105,7 @@ g = TIFFGetG(pixel_value); b = TIFFGetB(pixel_value); pixel_value = (*(pixel++)); - if ((a > 0) && (a < 255)) + if ((a > 0) && (a < 255) && (alpha_premult)) { r = (r * 255) / a; g = (g * 255) / a; ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs