Fixed: jpeg read didn't implement _LoadGrayscaleAsAlpha neither.

This commit is contained in:
kervala 2010-05-29 17:43:49 +02:00
parent 05685af66b
commit c830f573e4

View file

@ -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
{ {