summaryrefslogtreecommitdiffstats
path: root/src/pngenc.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-03-10 16:02:35 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-03-10 16:02:35 (GMT)
commit5e4af367aa86722cd1545657727247d9008e9a16 (patch)
tree6db5f7392588f3b8c9d05ab7d2651803bc00c4c1 /src/pngenc.cpp
parent837e4e86e7d2735cd7106efec6e4512db82d5e7a (diff)
downloadDoxygen-5e4af367aa86722cd1545657727247d9008e9a16.zip
Doxygen-5e4af367aa86722cd1545657727247d9008e9a16.tar.gz
Doxygen-5e4af367aa86722cd1545657727247d9008e9a16.tar.bz2
Release-1.2.14-20020310
Diffstat (limited to 'src/pngenc.cpp')
-rw-r--r--src/pngenc.cpp2
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