summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-04-10 06:12:37 +0200
committerKim Woelders <kim@woelders.dk>2021-04-13 06:56:32 +0200
commit7eb6c6388b74a148260ab894183ddacecfebf105 (patch)
tree7cbb127a305bdf2f0557e5d48e1ecf0ef0753c0e
parent11cc9ffa51789f35a4ecdfdd26daf6d981262f10 (diff)
downloadimlib2-7eb6c6388b74a148260ab894183ddacecfebf105.tar.gz
ICO loader: Fix (disabled) debug stuff
-rw-r--r--src/modules/loaders/loader_ico.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/loaders/loader_ico.c b/src/modules/loaders/loader_ico.c
index c15ff98..86a2296 100644
--- a/src/modules/loaders/loader_ico.c
+++ b/src/modules/loaders/loader_ico.c
@@ -213,7 +213,7 @@ ico_read_icon(ico_t * ico, int ino)
}
static ico_t *
-ico_read(FILE * fp)
+ico_read(ImlibImage * im)
{
ico_t *ico;
unsigned int nr, i;
@@ -222,7 +222,7 @@ ico_read(FILE * fp)
if (!ico)
return NULL;
- ico->fp = fp;
+ ico->fp = im->fp;
nr = fread(&ico->idir, 1, sizeof(ico->idir), ico->fp);
if (nr != sizeof(ico->idir))
@@ -240,7 +240,7 @@ ico_read(FILE * fp)
if (!ico->ie)
goto bail;
- D("Loading '%s' Nicons = %d\n", filename, ico->idir.icons);
+ D("Loading '%s' Nicons = %d\n", im->real_file, ico->idir.icons);
for (i = 0; i < ico->idir.icons; i++)
{
@@ -419,7 +419,7 @@ load2(ImlibImage * im, int load_data)
ico_t *ico;
int ok;
- ico = ico_read(im->fp);
+ ico = ico_read(im);
if (!ico)
return 0;