diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-05-04 02:55:10 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-05-04 02:55:10 +0000 |
commit | 3244154c109949e05005bb895928ac36c957557f (patch) | |
tree | 075fa96ecf5cc5bbd6fa1fb18c1b33e33ce05e44 /converter/other | |
parent | 088a80081f1af2934e2b3d0f3d826d5ba87d1e30 (diff) | |
download | netpbm-mirror-3244154c109949e05005bb895928ac36c957557f.tar.gz netpbm-mirror-3244154c109949e05005bb895928ac36c957557f.tar.xz netpbm-mirror-3244154c109949e05005bb895928ac36c957557f.zip |
cleanup. (Looks like it fixes a bad bug, but the bug actually appears to be nonfunctional - the entries of transPnm after transSize are always opaque
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2751 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pnmtopng.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c index ac171453..cf053f7e 100644 --- a/converter/other/pnmtopng.c +++ b/converter/other/pnmtopng.c @@ -1842,9 +1842,9 @@ buildColorLookup(pixel palette_pnm[], static void -buildColorAlphaLookup(pixel palette_pnm[], +buildColorAlphaLookup(pixel palettePnm[], unsigned int const paletteSize, - gray trans_pnm[], + gray transPnm[], unsigned int const transSize, gray const alphaMaxval, coloralphahash_table * const cahtP) { @@ -1857,12 +1857,12 @@ buildColorAlphaLookup(pixel palette_pnm[], gray paletteTrans; if (paletteIndex < transSize) - paletteTrans = alphaMaxval; + paletteTrans = transPnm[paletteIndex]; else - paletteTrans = trans_pnm[paletteIndex]; + paletteTrans = alphaMaxval; - addtocoloralphahash(caht, &palette_pnm[paletteIndex], - &trans_pnm[paletteIndex], paletteIndex); + addtocoloralphahash(caht, &palettePnm[paletteIndex], + &paletteTrans, paletteIndex); } *cahtP = caht; } |