diff options
author | 2011-02-16 16:20:03 +0000 | |
---|---|---|
committer | 2011-02-16 16:20:03 +0000 | |
commit | ef76c7102fdab9d3b6e44214fd9b2656b694e211 (patch) | |
tree | 6055d8d2b3bcda54311f31fb03dc8d69d0ed908d /src/patchsets/timidity++ | |
parent | Fix the series files and add a patch to fix build with libpng 1.5 (diff) | |
download | gentoo-ef76c7102fdab9d3b6e44214fd9b2656b694e211.tar.gz gentoo-ef76c7102fdab9d3b6e44214fd9b2656b694e211.tar.bz2 gentoo-ef76c7102fdab9d3b6e44214fd9b2656b694e211.zip |
fix libpng 1.5 patch
Diffstat (limited to 'src/patchsets/timidity++')
-rw-r--r-- | src/patchsets/timidity++/2.13.2/09_all_libpng15.patch | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/patchsets/timidity++/2.13.2/09_all_libpng15.patch b/src/patchsets/timidity++/2.13.2/09_all_libpng15.patch index b255781201..9bf0fa22a0 100644 --- a/src/patchsets/timidity++/2.13.2/09_all_libpng15.patch +++ b/src/patchsets/timidity++/2.13.2/09_all_libpng15.patch @@ -11,7 +11,21 @@ Index: TiMidity++-2.13.2/interface/x_sherry.c tf_read(buff, 1, n, tf); } -@@ -938,9 +938,7 @@ static void sry_load_png(uint8 *data) +@@ -909,7 +909,7 @@ static void sry_load_png(uint8 *data) + { + 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,13 +934,11 @@ static void sry_load_png(uint8 *data) + } + } + } +- png_set_dither(pngPtr, stdColorCube, ++ png_set_quantize(pngPtr, stdColorCube, 6*7*6, MAX_SCREEN_COLORS, NULL, 1); /*???*/ |