kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=1f6438a1c7a935d4e5724e650d856cfc5d5f3429
commit 1f6438a1c7a935d4e5724e650d856cfc5d5f3429 Author: Kim Woelders <k...@woelders.dk> Date: Sat Apr 10 06:14:59 2021 +0200 ICO loader: Enable specifying ico image index by key --- src/modules/loaders/loader_ico.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/modules/loaders/loader_ico.c b/src/modules/loaders/loader_ico.c index 86a2296..fc12dbf 100644 --- a/src/modules/loaders/loader_ico.c +++ b/src/modules/loaders/loader_ico.c @@ -308,13 +308,12 @@ ico_load(ico_t * ico, ImlibImage * im, int load_data) } /* Enable overriding selected index for debug purposes */ - { - const char *s = getenv("IMLIB2_LOADER_ICO"); - - ic = (s) ? atoi(s) : ic; - if (ic >= ico->idir.icons) - return 0; - } + if (im->key) + { + ic = atoi(im->key); + if (ic >= ico->idir.icons) + return 0; + } ie = &ico->ie[ic]; --