This reverts commitc7ca547b55
.cd710f5
fixed the issue with embedding into a parent that has alpha and partially revertedc7ca547
this commit fully revertsc7ca547
, as these changes aren't needed for embedding into an alpha-parent.
This commit is contained in:
parent
12efa0e3b4
commit
7b37a6272f
3
image.c
3
image.c
@ -627,7 +627,7 @@ void img_render(img_t *img)
|
|||||||
if ((bg = imlib_create_image(dw, dh)) == NULL)
|
if ((bg = imlib_create_image(dw, dh)) == NULL)
|
||||||
error(EXIT_FAILURE, ENOMEM, NULL);
|
error(EXIT_FAILURE, ENOMEM, NULL);
|
||||||
imlib_context_set_image(bg);
|
imlib_context_set_image(bg);
|
||||||
imlib_image_set_has_alpha(1);
|
imlib_image_set_has_alpha(0);
|
||||||
|
|
||||||
if (img->alpha) {
|
if (img->alpha) {
|
||||||
int i, c, r;
|
int i, c, r;
|
||||||
@ -655,7 +655,6 @@ void img_render(img_t *img)
|
|||||||
imlib_free_image();
|
imlib_free_image();
|
||||||
imlib_context_set_color_modifier(img->cmod);
|
imlib_context_set_color_modifier(img->cmod);
|
||||||
} else {
|
} else {
|
||||||
imlib_image_set_has_alpha(1);
|
|
||||||
imlib_render_image_part_on_drawable_at_size(sx, sy, sw, sh, dx, dy, dw, dh);
|
imlib_render_image_part_on_drawable_at_size(sx, sy, sw, sh, dx, dy, dw, dh);
|
||||||
}
|
}
|
||||||
img->dirty = false;
|
img->dirty = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user