aboutsummaryrefslogtreecommitdiff
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-04-06 22:47:42 +0200
committerBert Münnich <ber.t@posteo.de>2014-04-06 22:47:42 +0200
commite685859a30560e076db4de003fba4e4500ade2c7 (patch)
tree8372fdc425be8bbd876dd931bbb30c6fd82bed06 /thumbs.c
parent6d7acac3d132c5be09a9a4e8d0f4ebd4972e9385 (diff)
Use a checkerboard background for alpha layer; fixes issue #138
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/thumbs.c b/thumbs.c
index fe0ad84..80249d7 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -18,7 +18,6 @@
#define _POSIX_C_SOURCE 200112L
#define _THUMBS_CONFIG
-#define _RENDER_CONFIG
#include <stdlib.h>
#include <string.h>
@@ -177,7 +176,6 @@ void tns_init(tns_t *tns, int cnt, win_t *win)
tns->cap = cnt;
tns->cnt = tns->first = tns->sel = 0;
tns->win = win;
- tns->alpha = !RENDER_WHITE_ALPHA;
tns->dirty = false;
if ((homedir = getenv("XDG_CACHE_HOME")) == NULL || homedir[0] == '\0') {
@@ -360,10 +358,6 @@ void tns_render(tns_t *tns)
t->x = x + (THUMB_SIZE - t->w) / 2;
t->y = y + (THUMB_SIZE - t->h) / 2;
imlib_context_set_image(t->im);
-
- if (!tns->alpha && imlib_image_has_alpha())
- win_draw_rect(win, win->pm, t->x, t->y, t->w, t->h, true, 0, win->white);
-
imlib_render_image_part_on_drawable_at_size(0, 0, t->w, t->h,
t->x, t->y, t->w, t->h);
if (t->file->marked)