summaryrefslogtreecommitdiff
path: root/audio/timidity++/files/patch-x_sherry.c
blob: c33a60cf7ce0eaee5d7b1fbfdac01ccfcbfd158f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- interface/x_sherry.c.orig	2002-07-14 23:19:32.000000000 +0200
+++ interface/x_sherry.c	2012-04-27 13:12:58.000000000 +0200
@@ -34,6 +34,7 @@
 #endif
 #include <stdlib.h>
 #include <png.h>
+#include <pngpriv.h>
 
 #include "timidity.h"
 #include "common.h"
@@ -909,7 +910,7 @@
 	{
 	    if(png_get_valid(pngPtr, infoPtr, PNG_INFO_hIST))
 		png_get_hIST(pngPtr, infoPtr, &hist);
-	    png_set_dither(pngPtr, palette,
+	    png_set_quantize(pngPtr, palette,
 			   numPalette, MAX_SCREEN_COLORS, hist, 1);
 	}
     }
@@ -934,7 +935,7 @@
 		}
 	    }
 	}
-	png_set_dither(pngPtr, stdColorCube,
+	png_set_quantize(pngPtr, stdColorCube,
 		       6*7*6, MAX_SCREEN_COLORS,
 		       NULL, 1);
 	/*???*/