Package: feh
Version: 1.3.4.dfsg.1-4
Severity: normal
Tags: patch
Heya,
I could reproduce this bug here as well.
I assume that at some point the imlib2 default for new images changed
from "with alpha channel" to "without alpha channel", which then broke all
alpha in feh since it did not initialize it.
The attached patch (yeah, looks quite trivial :) should fix it, at least it
does for me.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/src/thumbnail.c b/src/thumbnail.c
index f85e434..b4f410d 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -144,6 +144,7 @@ init_thumbnail_mode(void)
index_image_width = td.w;
index_image_height = td.h + title_area_h;
td.im_main = imlib_create_image(index_image_width, index_image_height);
+ gib_imlib_image_set_has_alpha(td.im_main, 1);
if (!td.im_main)
eprintf("Imlib error creating index image, are you low on RAM?");