summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-09-24 22:39:53 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-09-24 22:39:53 -0500
commit01a0e8062debca08cc6a2105ec7fa02261acc551 (patch)
treec4874d9747df27c857d2f5603509e60e24df79b1 /example.c
parent5b038f83e780997dca9bd52613d4e38fc52a613c (diff)
[libpng16] Reverted addition of png_set_filler_16 and png_set_add_alpha_16()
functions. They unnecessarily duplicate png_set_filler() and png_set_add_alpha() which now work properly with 16-bit images.
Diffstat (limited to 'example.c')
-rw-r--r--example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example.c b/example.c
index 902b6c584..f8591e668 100644
--- a/example.c
+++ b/example.c
@@ -522,7 +522,7 @@ void read_png(FILE *fp, int sig_read) /* File is already open */
png_set_swap(png_ptr);
/* Add filler (or alpha) byte (before/after each RGB triplet) */
- png_set_filler_16(png_ptr, 0xffff, PNG_FILLER_AFTER);
+ png_set_filler(png_ptr, 0xffff, PNG_FILLER_AFTER);
#ifdef PNG_READ_INTERLACING_SUPPORTED
/* Turn on interlace handling. REQUIRED if you are not using
@@ -958,7 +958,7 @@ void write_png(char *file_name /* , ... other image information ... */)
/* Get rid of filler (OR ALPHA) bytes, pack XRGB/RGBX/ARGB/RGBA into
* RGB (4 channels -> 3 channels). The second parameter is not used.
*/
- png_set_filler_16(png_ptr, 0, PNG_FILLER_BEFORE);
+ png_set_filler(png_ptr, 0, PNG_FILLER_BEFORE);
/* Flip BGR pixels to RGB */
png_set_bgr(png_ptr);