pkgsrc/graphics/imlib/patches/patch-aa
2002-03-19 16:16:08 +00:00

14 lines
460 B
Text

$NetBSD: patch-aa,v 1.13 2002/03/19 16:16:08 wiz Exp $
--- gdk_imlib/io-png.c.orig Mon Mar 4 17:26:51 2002
+++ gdk_imlib/io-png.c
@@ -301,6 +301,9 @@
/* Setup Translators */
if (color_type == PNG_COLOR_TYPE_PALETTE)
png_set_expand(png_ptr);
+ if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+ png_set_expand(png_ptr);
+
png_set_strip_16(png_ptr);
png_set_packing(png_ptr);
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))