[devel] Implementation of premultiplied alpha support: png_set_alpha_mode

(libpng-manual.txt still to be updated, see png.h for documentation.)
This commit is contained in:
John Bowler
2011-05-07 21:00:28 -05:00
committed by Glenn Randers-Pehrson
parent af855e415d
commit d273ad2d0f
12 changed files with 2128 additions and 607 deletions

View File

@@ -315,7 +315,7 @@ png_zlib_release(png_structp png_ptr)
break;
}
png_warning_parameter_unsigned(p, 1, PNG_NUMBER_FORMAT_d, ret);
png_warning_parameter_signed(p, 1, PNG_NUMBER_FORMAT_d, ret);
png_warning_parameter(p, 2, err);
if (png_ptr->zstream.msg)
@@ -1549,7 +1549,7 @@ png_check_keyword(png_structp png_ptr, png_const_charp key, png_charpp new_key)
PNG_WARNING_PARAMETERS(p)
png_warning_parameter_unsigned(p, 1, PNG_NUMBER_FORMAT_02x,
*ikp);
(png_byte)*ikp);
png_formatted_warning(png_ptr, p, "invalid keyword character 0x@1");
*dp = ' ';
}