diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-05-28 20:21:59 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-05-28 20:21:59 +0300 |
commit | 46cb763bffdbd1d2feea6d27344c48d16a511745 (patch) | |
tree | 4eea9dd37e649dbfb3d24bbb1b03671db2f7ae0e /plugins/AdvaImg/src/LibJPEG/wrtarga.c | |
parent | c9bffd4f4e69fb1f34781cdf138b8b17e96b835b (diff) |
AdvaImg: LibJPEG lib update to 9b
Diffstat (limited to 'plugins/AdvaImg/src/LibJPEG/wrtarga.c')
-rw-r--r-- | plugins/AdvaImg/src/LibJPEG/wrtarga.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/AdvaImg/src/LibJPEG/wrtarga.c b/plugins/AdvaImg/src/LibJPEG/wrtarga.c index 65662738d9..a3b7475cf8 100644 --- a/plugins/AdvaImg/src/LibJPEG/wrtarga.c +++ b/plugins/AdvaImg/src/LibJPEG/wrtarga.c @@ -2,6 +2,7 @@ * wrtarga.c
*
* Copyright (C) 1991-1996, Thomas G. Lane.
+ * Modified 2015 by Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -73,7 +74,7 @@ write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) targaheader[17] = 0x20; /* Top-down, non-interlaced */
if (cinfo->out_color_space == JCS_GRAYSCALE) {
- targaheader[2] = 3; /* image type = uncompressed gray-scale */
+ targaheader[2] = 3; /* image type = uncompressed grayscale */
targaheader[16] = 8; /* bits per pixel */
} else { /* must be RGB */
if (num_colors > 0) {
@@ -247,7 +248,7 @@ jinit_write_targa (j_decompress_ptr cinfo) ((j_common_ptr) cinfo, JPOOL_IMAGE, dest->buffer_width, (JDIMENSION) 1);
dest->pub.buffer_height = 1;
- return (djpeg_dest_ptr) dest;
+ return &dest->pub;
}
#endif /* TARGA_SUPPORTED */
|