Browse Source

Fix plJPEG build against libjpeg-8c

Zrax 14 years ago
parent
commit
9adb7ee54f
  1. 4
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp

4
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp

@ -222,7 +222,7 @@ plMipmap *plJPEG::IRead( hsStream *inStream )
#else #else
case JCS_GRAYSCALE: case JCS_GRAYSCALE:
case JCS_YCbCr: case JCS_YCbCr:
cinfo.out_color_space = JCS_RGBA; cinfo.out_color_space = JCS_RGB;
break; break;
#endif #endif
@ -389,7 +389,7 @@ hsBool plJPEG::IWrite( plMipmap *source, hsStream *outStream )
cinfo.image_width = source->GetWidth(); cinfo.image_width = source->GetWidth();
cinfo.image_height = source->GetHeight(); cinfo.image_height = source->GetHeight();
cinfo.input_components = 4; cinfo.input_components = 4;
cinfo.in_color_space = JCS_RGBA; cinfo.in_color_space = JCS_RGB;
jpeg_set_defaults( &cinfo ); jpeg_set_defaults( &cinfo );
#endif #endif

Loading…
Cancel
Save