oops - expand indexed images...

SVN revision: 1856
This commit is contained in:
Carsten Haitzler 2000-01-05 12:23:24 +00:00
parent 79d2919f9f
commit 3a0e190876
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@ load (ImlibImage *im,
&bit_depth, &color_type, &interlace_type, NULL, NULL);
im->w = (int)w32;
im->h = (int)h32;
if (color_type == PNG_COLOR_TYPE_PALETTE)
png_set_expand(png_ptr);
if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
hasa = 1;
if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)