mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: jpeg read didn't implement _LoadGrayscaleAsAlpha neither.
This commit is contained in:
parent
fd3e616d88
commit
2a6620044c
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ uint8 CBitmap::readJPG( NLMISC::IStream &f )
|
||||||
{
|
{
|
||||||
dstChannels = 1;
|
dstChannels = 1;
|
||||||
srcChannels = 1;
|
srcChannels = 1;
|
||||||
resize (cinfo.image_width, cinfo.image_height, Luminance);
|
resize (cinfo.image_width, cinfo.image_height, _LoadGrayscaleAsAlpha ? Alpha : Luminance);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue