fix dat.........

SVN revision: 1638
This commit is contained in:
Carsten Haitzler 1999-12-16 16:26:34 +00:00
parent e4d5926978
commit e64d52318b
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@ load (ImlibImage *im,
im->h = (int)h32;
if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
hasa = 1;
if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
{
hasa = 1;
hasg = 1;
}
if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY)
hasg = 1;
if (hasa)