kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=188cad2329733d50280b73893eabd88024674001
commit 188cad2329733d50280b73893eabd88024674001 Author: Kim Woelders <[email protected]> Date: Fri Feb 25 19:10:59 2022 +0100 JPEG, XBM loaders: Drop pointless clearing of flag im->flags F_HAS_ALPHA should always be clear at this point. In any case it should not be the responsibility of the loader to clear it. --- src/modules/loaders/loader_jpeg.c | 2 -- src/modules/loaders/loader_xbm.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/modules/loaders/loader_jpeg.c b/src/modules/loaders/loader_jpeg.c index 3c513c2..c668f41 100644 --- a/src/modules/loaders/loader_jpeg.c +++ b/src/modules/loaders/loader_jpeg.c @@ -115,8 +115,6 @@ load2(ImlibImage * im, int load_data) im->h = h; } - IM_FLAG_CLR(im, F_HAS_ALPHA); - if (!load_data) QUIT_WITH_RC(LOAD_SUCCESS); diff --git a/src/modules/loaders/loader_xbm.c b/src/modules/loaders/loader_xbm.c index 62a252c..efb4253 100644 --- a/src/modules/loaders/loader_xbm.c +++ b/src/modules/loaders/loader_xbm.c @@ -153,8 +153,6 @@ load2(ImlibImage * im, int load_data) if (!load_data) QUIT_WITH_RC(LOAD_SUCCESS); - IM_FLAG_CLR(im, F_HAS_ALPHA); - header = 0; rc = LOAD_BADIMAGE; /* Format accepted */ --
