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 659682f651d016e2e69616c7c2b2503109fce79a
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Dec 14 09:23:57 2024 +0100

    SVG loader: Check alpha in pixel data
    
    Doing the alpha check does not seem to have significant overhead,
    probably because svg loading is somewhat expensive in itself.
    Also, svg's generally do have alpha, so the alpha check will normally be
    done quickly.
---
 src/modules/loaders/loader_svg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/loaders/loader_svg.c b/src/modules/loaders/loader_svg.c
index c66eb75..f84f8cb 100644
--- a/src/modules/loaders/loader_svg.c
+++ b/src/modules/loaders/loader_svg.c
@@ -199,7 +199,7 @@ _load(ImlibImage *im, int load_data)
     if (!IMAGE_DIMENSIONS_OK(im->w, im->h))
         goto quit;
 
-    im->has_alpha = 1;
+    im->has_alpha = LDR_ALPHA_CHECK;
 
     if (!load_data)
         QUIT_WITH_RC(LOAD_SUCCESS);

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

Reply via email to