summaryrefslogtreecommitdiff
path: root/graphics/fbida/read-png.c.patch
diff options
context:
space:
mode:
authorLuis Henrique <lmello.009@gmail.com>2010-06-17 06:43:40 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-17 14:42:41 -0500
commit266f6ae785152bcecc491c7e5e369860d7eddddf (patch)
tree5add19f7c887355c15ed77dbf5f1620ffb17f23a /graphics/fbida/read-png.c.patch
parente637744f18d9127646c27f77d19e7f628a6d9652 (diff)
downloadslackbuilds-266f6ae785152bcecc491c7e5e369860d7eddddf.tar.gz
graphics/fbida: Added (image viewer)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/fbida/read-png.c.patch')
-rw-r--r--graphics/fbida/read-png.c.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/fbida/read-png.c.patch b/graphics/fbida/read-png.c.patch
new file mode 100644
index 0000000000..5e4bfb6ffe
--- /dev/null
+++ b/graphics/fbida/read-png.c.patch
@@ -0,0 +1,11 @@
+--- rd/read-png.c.orig 2010-05-27 17:30:21.883639928 -0300
++++ rd/read-png.c 2010-05-27 17:33:27.385641448 -0300
+@@ -69,7 +69,7 @@
+ if (h->color_type == PNG_COLOR_TYPE_PALETTE)
+ png_set_palette_to_rgb(h->png);
+ if (h->color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+- png_set_gray_1_2_4_to_8(h->png);
++ png_set_expand_gray_1_2_4_to_8(h->png);
+
+ if (png_get_bKGD(h->png, h->info, &file_bg)) {
+ png_set_background(h->png,file_bg,PNG_BACKGROUND_GAMMA_FILE,1,1.0);