From e7db0a58eeaf960ff806447c978fd18b9713c3b7 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 18 Dec 2008 17:39:41 +0100 Subject: [PATCH] image: set alpha when creating ARGB32 image Signed-off-by: Julien Danjou --- image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image.c b/image.c index 06950afa..3848cf1a 100644 --- a/image.c +++ b/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);