Fixed: Png read didn't implement _LoadGrayscaleAsAlpha.

This commit is contained in:
kaetemi 2010-05-29 13:44:12 +02:00
parent be1afc9e73
commit b70c68d332

View file

@ -163,7 +163,7 @@ uint8 CBitmap::readPNG( NLMISC::IStream &f )
dstChannels = 1;
firstChannel = 0;
lastChannel = 0;
resize (width, height, Luminance);
resize (width, height, _LoadGrayscaleAsAlpha ? Alpha : Luminance);
}
else if (iColorType == PNG_COLOR_TYPE_GRAY_ALPHA)
{