14 lines
544 B
Plaintext
14 lines
544 B
Plaintext
$OpenBSD: patch-gdk_imlib_io-png_c,v 1.3 2009/01/09 16:21:42 naddy Exp $
|
|
--- gdk_imlib/io-png.c.orig Mon Mar 4 18:06:29 2002
|
|
+++ gdk_imlib/io-png.c Fri Jan 9 17:20:41 2009
|
|
@@ -299,7 +299,8 @@ inline_png(unsigned char *data, int data_size)
|
|
im->rgb_width = ww;
|
|
im->rgb_height = hh;
|
|
/* Setup Translators */
|
|
- if (color_type == PNG_COLOR_TYPE_PALETTE)
|
|
+ if ((color_type == PNG_COLOR_TYPE_PALETTE) ||
|
|
+ (color_type == PNG_COLOR_TYPE_GRAY))
|
|
png_set_expand(png_ptr);
|
|
png_set_strip_16(png_ptr);
|
|
png_set_packing(png_ptr);
|