forked from old/legacy-imlib2
Drop some redundant calls to __imlib_LoadImageData()
This commit is contained in:
parent
5d1083858c
commit
a856571312
|
@ -1802,9 +1802,8 @@ __imlib_BlendImageToImage(ImlibImage * im_src, ImlibImage * im_dst,
|
|||
{
|
||||
char rgb_src = 0;
|
||||
|
||||
if (__imlib_LoadImageData(im_src))
|
||||
return;
|
||||
if (__imlib_LoadImageData(im_dst))
|
||||
/* Image data should(must) be loaded here but let's just check anyway */
|
||||
if (!im_src->data || !im_dst->data)
|
||||
return;
|
||||
|
||||
/* don't do anything if we have a 0 width or height image to render */
|
||||
|
|
|
@ -357,12 +357,11 @@ __imlib_BlendImageToImageSkewed(ImlibImage * im_src, ImlibImage * im_dst,
|
|||
double xy2;
|
||||
uint32_t *data, *src;
|
||||
|
||||
if ((ssw < 0) || (ssh < 0))
|
||||
/* Image data should(must) be loaded here but let's just check anyway */
|
||||
if (!im_src->data || !im_dst->data)
|
||||
return;
|
||||
|
||||
if (__imlib_LoadImageData(im_src))
|
||||
return;
|
||||
if (__imlib_LoadImageData(im_dst))
|
||||
if ((ssw < 0) || (ssh < 0))
|
||||
return;
|
||||
|
||||
/*\ Complicated gonio. Works on paper..
|
||||
|
|
Loading…
Reference in New Issue