diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-02-25 21:07:27 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-02-25 21:07:27 +0000 |
commit | 2ae05f39e93bed9b39474bedf8ed97873ca7d746 (patch) | |
tree | 4d58ca9d3e8ec2e4ac13573e45791c067097ef45 /converter/other | |
parent | 7f1e4ea14d706c0821969fda88e028352dac2189 (diff) | |
download | netpbm-mirror-2ae05f39e93bed9b39474bedf8ed97873ca7d746.tar.gz netpbm-mirror-2ae05f39e93bed9b39474bedf8ed97873ca7d746.tar.xz netpbm-mirror-2ae05f39e93bed9b39474bedf8ed97873ca7d746.zip |
Fix incorrect output when PNG has 16 bits per pixel. Broken by 1529
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1657 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pngtopam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pngtopam.c b/converter/other/pngtopam.c index 4789d6d8..160ad667 100644 --- a/converter/other/pngtopam.c +++ b/converter/other/pngtopam.c @@ -1248,7 +1248,7 @@ paletteAlpha(struct pngx * const pngxP, -#define GET_PNG_VAL(p) getPngVal(&(p), pngx_colorType(pngxP)) +#define GET_PNG_VAL(p) getPngVal(&(p), pngx_bitDepth(pngxP)) |