summaryrefslogtreecommitdiff
path: root/source/xap/gimp/gimp.png14.diff
blob: 5af06d6e33dbfd0fbe6928e0c1cb3bf2a92ae41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ./plug-ins/file-ico/ico-load.c.orig	2009-07-20 15:20:51.000000000 -0500
+++ ./plug-ins/file-ico/ico-load.c	2010-02-15 22:54:44.000000000 -0600
@@ -287,14 +287,14 @@
   switch (color_type)
     {
     case PNG_COLOR_TYPE_GRAY:
-      png_set_gray_1_2_4_to_8 (png_ptr);
+      png_set_expand_gray_1_2_4_to_8 (png_ptr);
       if ( bit_depth == 16 )
         png_set_strip_16 (png_ptr);
       png_set_gray_to_rgb (png_ptr);
       png_set_add_alpha (png_ptr, 0xff, PNG_FILLER_AFTER);
       break;
     case PNG_COLOR_TYPE_GRAY_ALPHA:
-      png_set_gray_1_2_4_to_8 (png_ptr);
+      png_set_expand_gray_1_2_4_to_8 (png_ptr);
       if ( bit_depth == 16 )
         png_set_strip_16 (png_ptr);
       png_set_gray_to_rgb (png_ptr);