diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-04-12 17:19:46 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-04-12 17:19:46 +0000 |
commit | f437333cf5d63d69f5ab9fd1eb553af4175037d0 (patch) | |
tree | 2f1bd9629e58c9dcf67726c8910012c4852e81c8 /Build/source/texk/web2c/luatexdir | |
parent | 307453997ef030ec4dfa1e876feaf0b8b8125bab (diff) |
Allow to build luaTeX with libpng-1.5.x
git-svn-id: svn://tug.org/texlive/trunk@22060 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/image/writepng.w | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index d6f92a87dc4..dffc86c6e53 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,10 @@ +2011-04-312 Peter Breitenlohner <peb@mppmu.mpg.de> + + * image/writepng.w: Fix to build with png-1.5 (and avoid + `deprecated' warnings with png-1.4). The transformations part + is removed on recommendation by John Bowler (a png developer). + Mail from Thomas Klausner <tk@giga.or.at>, Sun, 30 Jan 2011. + 2011-04-12 Taco Hoekwater <taco@luatex.org> * import of luatex 0.66.0, released version diff --git a/Build/source/texk/web2c/luatexdir/image/writepng.w b/Build/source/texk/web2c/luatexdir/image/writepng.w index 7d497deea0e..dea43ff0d18 100644 --- a/Build/source/texk/web2c/luatexdir/image/writepng.w +++ b/Build/source/texk/web2c/luatexdir/image/writepng.w @@ -573,7 +573,6 @@ void write_png(PDF pdf, image_dict * idict) */ if (pdf->minor_version > 1 && png_get_interlace_type (png_p, info_p) == PNG_INTERLACE_NONE - && (png_p->transformations == 0 || png_p->transformations == 0x2000) /* gamma */ &&!(png_get_color_type (png_p, info_p) == PNG_COLOR_TYPE_GRAY_ALPHA || png_get_color_type (png_p, info_p) == PNG_COLOR_TYPE_RGB_ALPHA) && ((pdf->image_hicolor != 0) || (png_get_bit_depth (png_p, info_p) <= 8)) @@ -619,8 +618,6 @@ void write_png(PDF pdf, image_dict * idict) if ((pdf->image_apply_gamma != 0) && (checked_gamma > 1.01 || checked_gamma < 0.99)) tex_printf("gamma delta=%lf ", checked_gamma); - if (png_p->transformations != PNG_TRANSFORM_IDENTITY) - tex_printf("transform=%lu", (long) png_p->transformations); if ((png_get_color_type (png_p, info_p) != PNG_COLOR_TYPE_GRAY) && (png_get_color_type (png_p, info_p) != PNG_COLOR_TYPE_RGB) && (png_get_color_type (png_p, info_p) != PNG_COLOR_TYPE_PALETTE)) |