This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit a856571312b9d5e41e930ea1736277fa9c734dc4
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Jan 13 09:20:48 2023 +0100

    Drop some redundant calls to __imlib_LoadImageData()
---
 src/lib/blend.c  | 5 ++---
 src/lib/rotate.c | 7 +++----
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/lib/blend.c b/src/lib/blend.c
index b431280..224e6e3 100644
--- a/src/lib/blend.c
+++ b/src/lib/blend.c
@@ -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 */
diff --git a/src/lib/rotate.c b/src/lib/rotate.c
index c24a4ca..f9282c6 100644
--- a/src/lib/rotate.c
+++ b/src/lib/rotate.c
@@ -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..

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to