summaryrefslogtreecommitdiff
path: root/src/process
diff options
context:
space:
mode:
Diffstat (limited to 'src/process')
-rw-r--r--src/process/im_quantize.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/process/im_quantize.cpp b/src/process/im_quantize.cpp
index 9a65f4c..de78cf4 100644
--- a/src/process/im_quantize.cpp
+++ b/src/process/im_quantize.cpp
@@ -2,7 +2,7 @@
* \brief Additional Image Quantization Operations
*
* See Copyright Notice in im_lib.h
- * $Id: im_quantize.cpp,v 1.1 2008/10/17 06:16:33 scuri Exp $
+ * $Id: im_quantize.cpp,v 1.2 2009/09/25 18:40:32 scuri Exp $
*/
@@ -24,8 +24,7 @@ void imProcessQuantizeRGBUniform(const imImage* src_image, imImage* dst_image, i
*green_map=(imbyte*)src_image->data[1],
*blue_map=(imbyte*)src_image->data[2];
- long *palette = imPaletteUniform();
- imImageSetPalette(dst_image, palette, 256);
+ imImageSetPalette(dst_image, imPaletteUniform(), 256);
for (int y = 0; y < src_image->height; y++)
{