forked from old/legacy-imlib2
oh oops - image blending whilst scaling want quite right in the api.. :)
SVN revision: 1319
This commit is contained in:
parent
d18b57b8ce
commit
c4c1d85c67
19
src/api.c
19
src/api.c
|
@ -930,10 +930,21 @@ imlib_create_cropped_scaled_image(Imlib_Image image, char antialias,
|
||||||
__imlib_FreeImage(im);
|
__imlib_FreeImage(im);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
__imlib_BlendImageToImage(im_old, im, antialias, 0, 0,
|
if (IMAGE_HAS_ALPHA(im_old))
|
||||||
source_x, source_y, source_width, source_height,
|
{
|
||||||
0, 0, destination_width, destination_height,
|
SET_FLAG(im->flags, F_HAS_ALPHA);
|
||||||
NULL, IMLIB_OP_COPY);
|
__imlib_BlendImageToImage(im_old, im, antialias, 0, 1,
|
||||||
|
source_x, source_y, source_width, source_height,
|
||||||
|
0, 0, destination_width, destination_height,
|
||||||
|
NULL, IMLIB_OP_COPY);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
__imlib_BlendImageToImage(im_old, im, antialias, 0, 0,
|
||||||
|
source_x, source_y, source_width, source_height,
|
||||||
|
0, 0, destination_width, destination_height,
|
||||||
|
NULL, IMLIB_OP_COPY);
|
||||||
|
}
|
||||||
return (Imlib_Image)im;
|
return (Imlib_Image)im;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue