Krolyxon
Commit 7b37a62

Branches

Refs →

nsxiv7b37a62

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.
Author
N-R-K
Date
2021-10-17 00:00 +0600
Committer
GitHub · 2021-10-16 18:00 +0000
Parent
12efa0e
Commit
7b37a6272f9ec2a62ffc91531b1655bdf5753d60

+1 −2

1 file changed

  1. M image.c +1 −2
M image.c View
@@ -627,7 +627,7 @@ void img_render(img_t *img)
627627 if ((bg = imlib_create_image(dw, dh)) == NULL)
628628 error(EXIT_FAILURE, ENOMEM, NULL);
629629 imlib_context_set_image(bg);
630− imlib_image_set_has_alpha(1);
630+ imlib_image_set_has_alpha(0);
631631
632632 if (img->alpha) {
633633 int i, c, r;
@@ -655,7 +655,6 @@ void img_render(img_t *img)
655655 imlib_free_image();
656656 imlib_context_set_color_modifier(img->cmod);
657657 } else {
658− imlib_image_set_has_alpha(1);
659658 imlib_render_image_part_on_drawable_at_size(sx, sy, sw, sh, dx, dy, dw, dh);
660659 }
661660 img->dirty = false;