diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-03-10 16:02:35 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-03-10 16:02:35 (GMT) |
commit | 57a81b6ed2c1f626c57c20f143468730322856da (patch) | |
tree | 6db5f7392588f3b8c9d05ab7d2651803bc00c4c1 /src/pngenc.cpp | |
parent | c7bc295f92f56d1dea369663e058933f550a0187 (diff) | |
download | Doxygen-57a81b6ed2c1f626c57c20f143468730322856da.zip Doxygen-57a81b6ed2c1f626c57c20f143468730322856da.tar.gz Doxygen-57a81b6ed2c1f626c57c20f143468730322856da.tar.bz2 |
Release-1.2.14-20020310
Diffstat (limited to 'src/pngenc.cpp')
-rw-r--r-- | src/pngenc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pngenc.cpp b/src/pngenc.cpp index 438b4b5..b7e54f4 100644 --- a/src/pngenc.cpp +++ b/src/pngenc.cpp @@ -99,7 +99,7 @@ void PngEncoder::write(const char *name) png_palette[i].green = palette[i].green; png_palette[i].blue = palette[i].blue; } - png_set_PLTE(png_ptr, info_ptr, png_palette, PNG_MAX_PALETTE_LENGTH); + png_set_PLTE(png_ptr, info_ptr, png_palette, numOfColors); png_set_IHDR( png_ptr, info_ptr, width, height, bit_depth, PNG_COLOR_TYPE_PALETTE, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE |