diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-28 16:30:41 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-11-28 16:30:41 +0000 |
commit | 67b79bdf31266d27f161ff7164357e434cdf8dd1 (patch) | |
tree | c1bf9177869c439343711307b246fbac98ea4eea /converter/other/pnmtopng.c | |
parent | 42981754a445355aac8d62efdd276ba96fcdac03 (diff) | |
download | netpbm-mirror-67b79bdf31266d27f161ff7164357e434cdf8dd1.tar.gz netpbm-mirror-67b79bdf31266d27f161ff7164357e434cdf8dd1.tar.xz netpbm-mirror-67b79bdf31266d27f161ff7164357e434cdf8dd1.zip |
Fix transparency optimization on PPM input
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@157 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pnmtopng.c')
-rw-r--r-- | converter/other/pnmtopng.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c index b83cbbcf..30966fa2 100644 --- a/converter/other/pnmtopng.c +++ b/converter/other/pnmtopng.c @@ -962,7 +962,7 @@ analyzeAlpha(FILE * const ifp, gray const alphaMaxval, bool * const allOpaqueP, bool * const singleColorIsTransP, - pixel* const alphaTranscolorP) { + pixel * const alphaTranscolorP) { /*---------------------------------------------------------------------------- Get information about the alpha mask, in combination with the masked image, that Caller can use to choose the most efficient way to @@ -993,13 +993,13 @@ analyzeAlpha(FILE * const ifp, */ foundTransparentPixel = FALSE; /* initial assumption */ pm_seek2(ifp, &rasterPos, sizeof(rasterPos)); - for (row = 0 ; row < rows && !foundTransparentPixel ; ++row) { + for (row = 0; row < rows && !foundTransparentPixel; ++row) { int col; pnm_readpnmrow(ifp, xelrow, cols, maxval, format); for (col = 0; col < cols && !foundTransparentPixel; ++col) { if (alphaMask[row][col] == 0) { foundTransparentPixel = TRUE; - transcolor = xeltopixel(xelrow[col]); + transcolor = pnm_xeltopixel(xelrow[col], format); } } } |