summaryrefslogtreecommitdiff
path: root/graphics/imlib/patches/patch-aa
blob: 6cbcc1a0ca84f41b3d9267f3f5d81e4859ef2f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-aa,v 1.12 2001/08/13 11:14:31 rh Exp $

--- gdk_imlib/io-png.c.orig	Sat Jul 28 16:15:16 2001
+++ gdk_imlib/io-png.c
@@ -299,6 +299,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))