mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Fixed: Png read didn't implement _LoadGrayscaleAsAlpha.
This commit is contained in:
parent
6e714586fe
commit
e84801de46
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ uint8 CBitmap::readPNG( NLMISC::IStream &f )
|
||||||
dstChannels = 1;
|
dstChannels = 1;
|
||||||
firstChannel = 0;
|
firstChannel = 0;
|
||||||
lastChannel = 0;
|
lastChannel = 0;
|
||||||
resize (width, height, Luminance);
|
resize (width, height, _LoadGrayscaleAsAlpha ? Alpha : Luminance);
|
||||||
}
|
}
|
||||||
else if (iColorType == PNG_COLOR_TYPE_GRAY_ALPHA)
|
else if (iColorType == PNG_COLOR_TYPE_GRAY_ALPHA)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue