xmoto/xmoto-0.5.3-libpng14.patch

13 lines
522 B
Diff
Raw Normal View History

diff -Nru xmoto-0.5.3.orig//src/image/tim_png.cpp xmoto-0.5.3/src/image/tim_png.cpp
--- xmoto-0.5.3.orig//src/image/tim_png.cpp 2007-12-03 11:33:24.000000000 +0100
+++ xmoto-0.5.3/src/image/tim_png.cpp 2010-10-25 03:08:58.857513109 +0200
@@ -166,7 +166,7 @@
png_set_palette_to_rgb(PngPtr);
if(nColorType==PNG_COLOR_TYPE_GRAY && nBitDepth<8)
- png_set_gray_1_2_4_to_8(PngPtr);
+ png_set_expand_gray_1_2_4_to_8(PngPtr);
if(png_get_valid(PngPtr,InfoPtr,PNG_INFO_tRNS))
png_set_tRNS_to_alpha(PngPtr);