From 2a6620044c2fc1873471f0949414ebe32c3a4516 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 {