From 7b37a6272f9ec2a62ffc91531b1655bdf5753d60 Mon Sep 17 00:00:00 2001 From: N-R-K <79544946+N-R-K@users.noreply.github.com> Date: Sun, 17 Oct 2021 00:00:46 +0600 Subject: Revert "Fix in tabbed with alpha patch (#3)" (#121) This reverts commit c7ca547b55e98914264351502e581fe6ae17ae15. cd710f5 fixed the issue with embedding into a parent that has alpha and partially reverted c7ca547 this commit fully reverts c7ca547 , as these changes aren't needed for embedding into an alpha-parent. --- image.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3-54-g00ecf