image: set alpha when creating ARGB32 image
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d709180738
commit
e7db0a58ee
2
image.c
2
image.c
|
@ -116,6 +116,8 @@ image_new_from_argb32(int width, int height, uint32_t *data)
|
|||
|
||||
if((imimage = imlib_create_image_using_copied_data(width, height, data)))
|
||||
{
|
||||
imlib_context_set_image(imimage);
|
||||
imlib_image_set_has_alpha(true);
|
||||
image = p_new(image_t, 1);
|
||||
image->image = imimage;
|
||||
image_compute(image);
|
||||
|
|
Loading…
Reference in New Issue