Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: compiler warning

  • Loading branch information...
commit 10ecf8d6020e44321fb96cd0f9ca0c6f1651b5c4 1 parent 4906ff6
bobo1on1 authored
2  lib/cximage-6.0/CxImage/ximapng.cpp
View
@@ -612,7 +612,7 @@ bool CxImagePNG::Encode(CxFile *hFile)
/* set the palette if there is one */
#ifdef USE_NEW_LIBPNG_API
- png_colorp _palette;
+ png_colorp _palette = NULL;
#endif
if (GetPalette()){
#ifndef USE_NEW_LIBPNG_API
3  lib/cximage-6.0/CxImage/ximapng.h
View
@@ -30,7 +30,8 @@ extern "C" {
#endif
}
-#if PNG_LIBPNG_VER > 10399
+//#if PNG_LIBPNG_VER > 10399
+#if 1
#define USE_NEW_LIBPNG_API
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.