29 lines
833 B
Diff
29 lines
833 B
Diff
--- icnsutils/png2icns.c 2009-05-11 08:17:16.000000000 +0200
|
|
+++ icnsutils/png2icns.c-gil 2010-09-21 20:57:32.000000000 +0200
|
|
@@ -70,7 +70,11 @@
|
|
switch (color_type)
|
|
{
|
|
case PNG_COLOR_TYPE_GRAY:
|
|
- png_set_gray_1_2_4_to_8(png_ptr);
|
|
+ #if PNG_LIBPNG_VER < 10400
|
|
+ png_set_gray_1_2_4_to_8(png_ptr);
|
|
+ #else
|
|
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
|
|
+ #endif
|
|
|
|
if (bit_depth == 16) {
|
|
png_set_strip_16(png_ptr);
|
|
@@ -82,7 +86,11 @@
|
|
break;
|
|
|
|
case PNG_COLOR_TYPE_GRAY_ALPHA:
|
|
- png_set_gray_1_2_4_to_8(png_ptr);
|
|
+ #if PNG_LIBPNG_VER < 10400
|
|
+ png_set_gray_1_2_4_to_8(png_ptr);
|
|
+ #else
|
|
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
|
|
+ #endif
|
|
|
|
if (bit_depth == 16) {
|
|
png_set_strip_16(png_ptr);
|