$NetBSD: patch-ab,v 1.4 2001/08/13 11:14:31 rh Exp $ --- Imlib/load.c.orig Wed Aug 1 00:15:16 2001 +++ Imlib/load.c @@ -241,7 +241,8 @@ png_read_image(png_ptr, lines); png_destroy_read_struct(&png_ptr, &info_ptr, NULL); ptr = data; - if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) + if (color_type == PNG_COLOR_TYPE_GRAY + || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { for (y = 0; y < *h; y++) { @@ -266,6 +267,7 @@ } } } +#if 0 else if (color_type == PNG_COLOR_TYPE_GRAY) { for (y = 0; y < *h; y++) @@ -281,6 +283,7 @@ } } } +#endif else { for (y = 0; y < *h; y++)