mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 22:51:41 +08:00
Fix 'boolean' issue with jpeg-9 library compatibility (STR #2920).
According to comments in STR #2920 and my own tests this is also compatible with older jpeg libraries (at least jpeg-8). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10621 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -155,7 +155,7 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *filename) // I - File to load
|
||||
|
||||
jpeg_create_decompress(&dinfo);
|
||||
jpeg_stdio_src(&dinfo, fp);
|
||||
jpeg_read_header(&dinfo, 1);
|
||||
jpeg_read_header(&dinfo, TRUE);
|
||||
|
||||
dinfo.quantize_colors = (boolean)FALSE;
|
||||
dinfo.out_color_space = JCS_RGB;
|
||||
@@ -337,7 +337,7 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *name, const unsigned char *data)
|
||||
|
||||
jpeg_create_decompress(&dinfo);
|
||||
jpeg_mem_src(&dinfo, data);
|
||||
jpeg_read_header(&dinfo, 1);
|
||||
jpeg_read_header(&dinfo, TRUE);
|
||||
|
||||
dinfo.quantize_colors = (boolean)FALSE;
|
||||
dinfo.out_color_space = JCS_RGB;
|
||||
|
||||
Reference in New Issue
Block a user