pallet + transp fix

SVN revision: 11442
This commit is contained in:
Carsten Haitzler 2004-08-30 08:15:40 +00:00
parent b5b2ee6f8c
commit dfa5c7dfab
1 changed files with 5 additions and 1 deletions

View File

@ -92,7 +92,11 @@ load(ImlibImage * im, ImlibProgressFunction progress,
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)