diff -u -r a/plt-4.2.5/src/wxcommon/wxJPEG.cxx b/plt-4.2.5/src/wxcommon/wxJPEG.cxx --- a/plt-4.2.5/src/wxcommon/wxJPEG.cxx 2010-03-17 20:22:03.000000000 +0200 +++ b/plt-4.2.5/src/wxcommon/wxJPEG.cxx 2010-05-11 18:16:06.000000000 +0300 @@ -726,7 +726,11 @@ png_set_strip_16(png_ptr); /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ + #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 } /* Set the background color to draw transparent and alpha images over.