Drop some redundant calls to __imlib_LoadImageData()

This commit is contained in:
Kim Woelders 2023-01-13 09:20:48 +01:00
parent 5d1083858c
commit a856571312
2 changed files with 5 additions and 7 deletions

View File

@ -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 */

View File

@ -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..