image: set alpha when creating ARGB32 image

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-12-18 17:39:41 +01:00
parent d709180738
commit e7db0a58ee
1 changed files with 2 additions and 0 deletions

View File

@ -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);