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.
+1 −2
1 file changed
- M image.c +1 −2
| @@ -627,7 +627,7 @@ void img_render(img_t *img) | |||
| 627 | 627 | if ((bg = imlib_create_image(dw, dh)) == NULL) | |
| 628 | 628 | error(EXIT_FAILURE, ENOMEM, NULL); | |
| 629 | 629 | imlib_context_set_image(bg); | |
| 630 | − | imlib_image_set_has_alpha(1); | |
| 630 | + | imlib_image_set_has_alpha(0); | |
| 631 | 631 | ||
| 632 | 632 | if (img->alpha) { | |
| 633 | 633 | int i, c, r; | |
| @@ -655,7 +655,6 @@ void img_render(img_t *img) | |||
| 655 | 655 | imlib_free_image(); | |
| 656 | 656 | imlib_context_set_color_modifier(img->cmod); | |
| 657 | 657 | } else { | |
| 658 | − | imlib_image_set_has_alpha(1); | |
| 659 | 658 | imlib_render_image_part_on_drawable_at_size(sx, sy, sw, sh, dx, dy, dw, dh); | |
| 660 | 659 | } | |
| 661 | 660 | img->dirty = false; | |