From df5db73f5a310071d92bf7357ce98afb7e573e09 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Mon, 22 Mar 2010 00:58:00 +0000 Subject: [PATCH] Updated credits; Fix issue 309: Libpng 1.4 breaks build process git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1396 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/fileformats.c | 10 +++++++++- src/helpfile.h | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/fileformats.c b/src/fileformats.c index ad455c24..1432e54a 100644 --- a/src/fileformats.c +++ b/src/fileformats.c @@ -3375,7 +3375,15 @@ void Load_PNG(T_IO_Context * context) { // Map low bpp greyscales to full 8bit (0-255 range) if (bit_depth < 8) - png_set_gray_1_2_4_to_8(png_ptr); + { + #if (PNG_LIBPNG_VER_MAJOR <= 1) && (PNG_LIBPNG_VER_MINOR < 4) + // Works well with png 1.2.8, but deprecated in 1.4 ... + png_set_gray_1_2_4_to_8(png_ptr); + #else + // ...where this seems to replace it: + png_set_expand_gray_1_2_4_to_8(png_ptr); + #endif + } // Create greyscale palette for (x=0;x<256;x++) diff --git a/src/helpfile.h b/src/helpfile.h index 2fe3909a..a1fcf8ee 100644 --- a/src/helpfile.h +++ b/src/helpfile.h @@ -346,6 +346,11 @@ static const T_Help_table helptable_credits[] = HELP_TEXT (" Pasi Kallinen") HELP_TEXT (" Better command-line handling") HELP_TEXT ("") + HELP_TEXT (" DawnBringer") + HELP_TEXT (" Lua scripts, image effects") + HELP_TEXT ("") + HELP_TEXT (" Nitrofurano") + HELP_TEXT (" Lua scripts") HELP_TEXT ("") HELP_TITLE(" ART") HELP_TEXT ("")