summaryrefslogtreecommitdiff
blob: e3b614f5749097c734e972a1780f3b9c0d10aac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/libfreepv/pngReader.cpp
+++ src/libfreepv/pngReader.cpp
@@ -135,7 +135,7 @@
     //Transfor grayscale images with less
     //than 8 bits to 8 bits
     if(color_t == PNG_COLOR_TYPE_GRAY && depth<8)
-      png_set_gray_1_2_4_to_8(p_png_struct);
+      png_set_expand_gray_1_2_4_to_8(p_png_struct);
 
     //Add a full alpha channel if there is
     //transparency information in the tRNS chunk
@@ -283,7 +283,7 @@
     //Transfor grayscale images with less
     //than 8 bits to 8 bits.
     if(color_t == PNG_COLOR_TYPE_GRAY && depth<8)
-      png_set_gray_1_2_4_to_8(p_png_struct);
+      png_set_expand_gray_1_2_4_to_8(p_png_struct);
 
     //Add a full alpha channel if there is
     //transparency information in the tRNS chunk