From 9adb7ee54faa742ca8fed02dfcb6ee1450d6d8e7 Mon Sep 17 00:00:00 2001 From: Zrax Date: Wed, 6 Apr 2011 20:47:35 -0700 Subject: [PATCH] Fix plJPEG build against libjpeg-8c --- .../Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp index a97d9cc1..c1a08d94 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp @@ -222,7 +222,7 @@ plMipmap *plJPEG::IRead( hsStream *inStream ) #else case JCS_GRAYSCALE: case JCS_YCbCr: - cinfo.out_color_space = JCS_RGBA; + cinfo.out_color_space = JCS_RGB; break; #endif @@ -389,7 +389,7 @@ hsBool plJPEG::IWrite( plMipmap *source, hsStream *outStream ) cinfo.image_width = source->GetWidth(); cinfo.image_height = source->GetHeight(); cinfo.input_components = 4; - cinfo.in_color_space = JCS_RGBA; + cinfo.in_color_space = JCS_RGB; jpeg_set_defaults( &cinfo ); #endif