diff options
author | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2010-09-15 16:07:13 +0200 |
---|---|---|
committer | Boroondas Gupte <hg@boroon.dasgupta.ch> | 2010-09-15 16:07:13 +0200 |
commit | 6e1ba9c960e473b113fba1f503711773aaaea436 (patch) | |
tree | 6989512435dd1e6e44a902cea9b42c58e5b2efbe /indra/llimage | |
parent | 8e28257c57dac00ce30d2907f6c24120769eeb57 (diff) | |
parent | c4a99e9a6ea3ee737acc6a65a65038975bda70d3 (diff) |
merged STORM-130 (a.k.a. VWR-22769, SNOW-737 Version agnostic libPNG linking)
Diffstat (limited to 'indra/llimage')
-rw-r--r-- | indra/llimage/llpngwrapper.cpp | 4 | ||||
-rw-r--r-- | indra/llimage/llpngwrapper.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/indra/llimage/llpngwrapper.cpp b/indra/llimage/llpngwrapper.cpp index 02043586b2..fe737e2072 100644 --- a/indra/llimage/llpngwrapper.cpp +++ b/indra/llimage/llpngwrapper.cpp @@ -210,7 +210,7 @@ void LLPngWrapper::normalizeImage() } if (mColorType == PNG_COLOR_TYPE_GRAY && mBitDepth < 8) { - png_set_gray_1_2_4_to_8(mReadPngPtr); + png_set_expand_gray_1_2_4_to_8(mReadPngPtr); } if (mColorType == PNG_COLOR_TYPE_GRAY || mColorType == PNG_COLOR_TYPE_GRAY_ALPHA) @@ -358,7 +358,7 @@ void LLPngWrapper::releaseResources() { if (mReadPngPtr || mReadInfoPtr) { - png_destroy_read_struct(&mReadPngPtr, &mReadInfoPtr, png_infopp_NULL); + png_destroy_read_struct(&mReadPngPtr, &mReadInfoPtr, NULL); mReadPngPtr = NULL; mReadInfoPtr = NULL; } diff --git a/indra/llimage/llpngwrapper.h b/indra/llimage/llpngwrapper.h index 0721adea3b..47a4207d66 100644 --- a/indra/llimage/llpngwrapper.h +++ b/indra/llimage/llpngwrapper.h @@ -26,7 +26,7 @@ #ifndef LL_LLPNGWRAPPER_H #define LL_LLPNGWRAPPER_H -#include "libpng12/png.h" +#include "png.h" #include "llimage.h" class LLPngWrapper |