From 3a0e190876c4b80462d3d9e4b8fb8575552a2144 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 5 Jan 2000 12:23:24 +0000 Subject: [PATCH] oops - expand indexed images... SVN revision: 1856 --- loaders/loader_png.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loaders/loader_png.c b/loaders/loader_png.c index bc31c07..76776d5 100644 --- a/loaders/loader_png.c +++ b/loaders/loader_png.c @@ -89,6 +89,8 @@ load (ImlibImage *im, &bit_depth, &color_type, &interlace_type, NULL, NULL); im->w = (int)w32; im->h = (int)h32; + if (color_type == PNG_COLOR_TYPE_PALETTE) + png_set_expand(png_ptr); if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA) hasa = 1; if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)