diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-07-12 20:16:52 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-07-12 20:16:52 +0000 |
commit | 55fb732d03358caa22b72d83d2e406f2e33bb61a (patch) | |
tree | 3fb13c9ad697b211b2f38134d32523305f8b723a /converter/other | |
parent | 782a4aef6be298d544c506433375cd2db99d4d6d (diff) | |
download | netpbm-mirror-55fb732d03358caa22b72d83d2e406f2e33bb61a.tar.gz netpbm-mirror-55fb732d03358caa22b72d83d2e406f2e33bb61a.tar.xz netpbm-mirror-55fb732d03358caa22b72d83d2e406f2e33bb61a.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@670 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pnmtopng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c index 1b806cca..72177507 100644 --- a/converter/other/pnmtopng.c +++ b/converter/other/pnmtopng.c @@ -2014,7 +2014,7 @@ createPngPalette(pixel palette_pnm[], for (i = 0; i < transSize; ++i) { unsigned int const newmv = PALETTEMAXVAL; unsigned int const oldmv = alpha_maxval; - trans[i] = (trans_pnm[i] * newmv + (oldmv/2)) / oldmv; + trans[i] = ROUNDDIV(trans_pnm[i] * newmv, oldmv); } } |