*** xfns.c.~1.565.~ 2002-11-14 17:21:29.000000000 +0100 --- xfns.c 2002-12-05 17:35:07.000000000 +0100 *************** *** 9004,9010 **** screen_gamma = (f->gamma ? 1 / f->gamma / 0.45455 : 2.2); /* Tell the PNG lib to handle gamma correction for us. */ ! #if defined(PNG_READ_sRGB_SUPPORTED) || defined(PNG_WRITE_sRGB_SUPPORTED) if (png_get_sRGB (png_ptr, info_ptr, &intent)) /* The libpng documentation says this is right in this case. */ --- 9004,9010 ---- screen_gamma = (f->gamma ? 1 / f->gamma / 0.45455 : 2.2); /* Tell the PNG lib to handle gamma correction for us. */ ! #if 0 #if defined(PNG_READ_sRGB_SUPPORTED) || defined(PNG_WRITE_sRGB_SUPPORTED) if (png_get_sRGB (png_ptr, info_ptr, &intent)) /* The libpng documentation says this is right in this case. */ *************** *** 9017,9023 **** else /* Use the standard default for the image gamma. */ png_set_gamma (png_ptr, screen_gamma, 0.45455); ! /* Handle alpha channel by combining the image with a background color. Do this only if a real alpha channel is supplied. For simple transparency, we prefer a clipping mask. */ --- 9017,9023 ---- else /* Use the standard default for the image gamma. */ png_set_gamma (png_ptr, screen_gamma, 0.45455); ! #endif /* Handle alpha channel by combining the image with a background color. Do this only if a real alpha channel is supplied. For simple transparency, we prefer a clipping mask. */