1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Fix plJPEG build against libjpeg-8c

This commit is contained in:
2011-04-06 20:47:35 -07:00
parent c8cee29c78
commit 9adb7ee54f

View File

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