about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-08-01 20:15:58 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-08-01 20:15:58 +0000
commit04300740c30a1b7a704ecdb4fba721ecd915520f (patch)
tree92e58eaf4c40b4e1973d814038c4c0410aed67c1 /converter
parent83a7b404160412757f99e939c7f55fb9459f4fc5 (diff)
downloadnetpbm-mirror-04300740c30a1b7a704ecdb4fba721ecd915520f.tar.gz
netpbm-mirror-04300740c30a1b7a704ecdb4fba721ecd915520f.tar.xz
netpbm-mirror-04300740c30a1b7a704ecdb4fba721ecd915520f.zip
make it compile
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@964 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/other/pngtopnm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/converter/other/pngtopnm.c b/converter/other/pngtopnm.c
index 47e26437..ffb98ef7 100644
--- a/converter/other/pngtopnm.c
+++ b/converter/other/pngtopnm.c
@@ -20,6 +20,7 @@
 #  define PNMTOPNG_WARNING_LEVEL 0   /* use 0 for backward compatibility, */
 #endif                               /*  2 for warnings (1 == error) */
 
+#include <assert.h>
 #include <math.h>
 #include <float.h>
 #include <png.h>    /* includes zlib.h and setjmp.h */
@@ -614,7 +615,7 @@ transColor(struct pngx * const pngxP) {
     int numTrans;
     png_color_16 * transColor;
 
-    assert(chunkIsPresent(PNG_INFO_tRNS));
+    assert(pngx_chunkIsPresent(pngxP, PNG_INFO_tRNS));
     
     png_get_tRNS(pngxP->png_ptr, pngxP->info_ptr,
                  &trans, &numTrans, &transColor);
@@ -636,7 +637,7 @@ isTransparentColor(pngcolor      const color,
 -----------------------------------------------------------------------------*/
     bool retval;
 
-    if (pngx_chunkIsPresent(PNG_INFO_tRNS)) {
+    if (pngx_chunkIsPresent(pngxP, PNG_INFO_tRNS)) {
         const png_color_16 * const transColorP = transColor(pngxP);
 
         /* It seems odd that libpng lets you get gamma-corrected pixel