diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2008-10-06 10:13:37 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2009-04-06 16:17:51 -0500 |
commit | 7d376ccd8c61da5fdefc3244ad310091f0f987e1 (patch) | |
tree | 6559b8e0c8dc3912d2fdd849ac1450563127e693 /example.c | |
parent | 382410249dd2e121be8efe054d83e18c7b3e7e66 (diff) | |
download | libpng-7d376ccd8c61da5fdefc3244ad310091f0f987e1.tar.gz |
Imported from libpng-1.2.33beta01.tarv1.2.33beta01
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ #if 0 /* in case someone actually tries to compile this */ /* example.c - an example of using libpng - * Last changed in libpng 1.2.32 [September 18, 2008] + * Last changed in libpng 1.2.33 [October 6, 2008] * This file has been placed in the public domain by the authors. * Maintained 1998-2008 Glenn Randers-Pehrson * Maintained 1996, 1997 Andreas Dilger) @@ -204,7 +204,7 @@ void read_png(FILE *fp, unsigned int sig_read) /* file is already open */ /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) - png_set_gray_1_2_4_to_8(png_ptr); + png_set_expand_gray_1_2_4_to_8(png_ptr); /* Expand paletted or RGB images with transparency to full alpha channels * so the data will be available as RGBA quartets. |