summaryrefslogtreecommitdiff
path: root/community/mtpaint/libpng14.patch
blob: 7df3b212787b37fe9c8028185700346312571794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -upr mtpaint-3.31.orig/src/png.c mtpaint-3.31/src/png.c
--- mtpaint-3.31.orig/src/png.c	2010-01-25 00:43:07.000000000 +0200
+++ mtpaint-3.31/src/png.c	2010-01-25 00:43:39.000000000 +0200
@@ -539,7 +539,7 @@ static int load_png(char *file_name, ls_
 	if (settings->bpp == 3)
 	{
 		png_set_strip_16(png_ptr);
-		png_set_gray_1_2_4_to_8(png_ptr);
+		png_set_expand_gray_1_2_4_to_8(png_ptr);
 		png_set_palette_to_rgb(png_ptr);
 		png_set_gray_to_rgb(png_ptr);
 
@@ -644,7 +644,7 @@ static int load_png(char *file_name, ls_
 		png_set_strip_alpha(png_ptr);
 		png_set_packing(png_ptr);
 		if ((color_type == PNG_COLOR_TYPE_GRAY) && (bit_depth < 8))
-			png_set_gray_1_2_4_to_8(png_ptr);
+			png_set_expand_gray_1_2_4_to_8(png_ptr);
 		for (i = 0; i < height; i++)
 		{
 			row_pointers[i] = settings->img[CHN_IMAGE] + i * width;