aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/image.c b/image.c
index 69f9049..062f7ad 100644
--- a/image.c
+++ b/image.c
@@ -627,7 +627,7 @@ void img_render(img_t *img)
if ((bg = imlib_create_image(dw, dh)) == NULL)
error(EXIT_FAILURE, ENOMEM, NULL);
imlib_context_set_image(bg);
- imlib_image_set_has_alpha(1);
+ imlib_image_set_has_alpha(0);
if (img->alpha) {
int i, c, r;
@@ -655,7 +655,6 @@ void img_render(img_t *img)
imlib_free_image();
imlib_context_set_color_modifier(img->cmod);
} else {
- imlib_image_set_has_alpha(1);
imlib_render_image_part_on_drawable_at_size(sx, sy, sw, sh, dx, dy, dw, dh);
}
img->dirty = false;