aboutsummaryrefslogtreecommitdiff
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rw-r--r--image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/image.c b/image.c
index c8fab6a..854e50b 100644
--- a/image.c
+++ b/image.c
@@ -210,6 +210,9 @@ void img_render(img_t *img, win_t *win) {
imlib_context_set_image(img->im);
else
imlib_context_set_image(im_broken);
+
+ if (imlib_image_has_alpha())
+ win_draw_rect(win, win->pm, dx, dy, dw, dh, True, 0, win->white);
imlib_context_set_drawable(win->pm);
imlib_render_image_part_on_drawable_at_size(sx, sy, sw, sh, dx, dy, dw, dh);