From c830f573e480ecce4370ec8f3c707c1de36f0fd2 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 29 May 2010 17:43:49 +0200 Subject: [PATCH] Fixed: jpeg read didn't implement _LoadGrayscaleAsAlpha neither. --- code/nel/src/misc/bitmap_jpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/misc/bitmap_jpeg.cpp b/code/nel/src/misc/bitmap_jpeg.cpp index ebc14e11a..835110d86 100644 --- a/code/nel/src/misc/bitmap_jpeg.cpp +++ b/code/nel/src/misc/bitmap_jpeg.cpp @@ -158,7 +158,7 @@ uint8 CBitmap::readJPG( NLMISC::IStream &f ) { dstChannels = 1; srcChannels = 1; - resize (cinfo.image_width, cinfo.image_height, Luminance); + resize (cinfo.image_width, cinfo.image_height, _LoadGrayscaleAsAlpha ? Alpha : Luminance); } else {