forked from old/legacy-imlib2
handle infinite loop for tile if scalign down to 1x1)
SVN revision: 2559
This commit is contained in:
parent
e5f09a8b21
commit
2f077c4835
19
src/api.c
19
src/api.c
|
@ -822,11 +822,20 @@ imlib_blend_image_onto_image(Imlib_Image source_image,
|
||||||
CAST_IMAGE(im_dst, ctxt_image);
|
CAST_IMAGE(im_dst, ctxt_image);
|
||||||
__imlib_DirtyImage(im_dst);
|
__imlib_DirtyImage(im_dst);
|
||||||
__imlib_DirtyPixmapsForImage(im_dst);
|
__imlib_DirtyPixmapsForImage(im_dst);
|
||||||
__imlib_BlendImageToImage(im_src, im_dst, ctxt_anti_alias, ctxt_blend,
|
/* FIXME: hack to get around infinite loops for scaling down too far */
|
||||||
merge_alpha, source_x, source_y, source_width,
|
if ((destination_width < (source_width >> 7)) ||
|
||||||
source_height, destination_x, destination_y,
|
(destination_height < (source_height >> 7)))
|
||||||
destination_width, destination_height,
|
__imlib_BlendImageToImage(im_src, im_dst, 0, ctxt_blend,
|
||||||
ctxt_color_modifier, ctxt_operation);
|
merge_alpha, source_x, source_y, source_width,
|
||||||
|
source_height, destination_x, destination_y,
|
||||||
|
destination_width, destination_height,
|
||||||
|
ctxt_color_modifier, ctxt_operation);
|
||||||
|
else
|
||||||
|
__imlib_BlendImageToImage(im_src, im_dst, ctxt_anti_alias, ctxt_blend,
|
||||||
|
merge_alpha, source_x, source_y, source_width,
|
||||||
|
source_height, destination_x, destination_y,
|
||||||
|
destination_width, destination_height,
|
||||||
|
ctxt_color_modifier, ctxt_operation);
|
||||||
}
|
}
|
||||||
|
|
||||||
Imlib_Image
|
Imlib_Image
|
||||||
|
|
Loading…
Reference in New Issue