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 7e7eae168a4256fad528e24529820352392d9489
Author: Kim Woelders <[email protected]>
AuthorDate: Tue Dec 6 16:26:31 2022 +0100
ANI loader: Disable progress in embed loader
---
src/modules/loaders/loader_ani.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/modules/loaders/loader_ani.c b/src/modules/loaders/loader_ani.c
index 81b17ea..c946593 100644
--- a/src/modules/loaders/loader_ani.c
+++ b/src/modules/loaders/loader_ani.c
@@ -38,13 +38,27 @@ _load_embedded(ImlibImage * im, int load_data, const char *data,
{
int rc;
ImlibLoader *loader;
+ int frame;
+ void *lc;
loader = __imlib_FindBestLoader(NULL, "ico", 0);
if (!loader)
return LOAD_FAIL;
+ /* Disable frame and progress handling in sub-loader */
+ frame = im->frame;
+ lc = im->lc;
+ im->frame = 0;
+ im->lc = NULL;
+
rc = __imlib_LoadEmbeddedMem(loader, im, load_data, data, size);
+ im->frame = frame;
+ im->lc = lc;
+
+ if (rc == LOAD_SUCCESS && im->lc)
+ __imlib_LoadProgress(im, 0, 0, im->w, im->h);
+
return rc;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.