summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-03-15 19:32:33 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-03-15 19:32:33 +0000
commitfdab34b20e423ebac430a97f1ddcdae29ba881e0 (patch)
tree208d7a4d11c35f675d6d15647b6596e31ac0f7ec
parent066f7186743e7c99f74793a93adc643ea3897f56 (diff)
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
-rw-r--r--src/Fl_JPEG_Image.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx
index 47120a7de..6cebe88e9 100644
--- a/src/Fl_JPEG_Image.cxx
+++ b/src/Fl_JPEG_Image.cxx
@@ -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;