summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-12-18 09:14:51 +0100
committerKim Woelders <kim@woelders.dk>2021-12-19 14:58:43 +0100
commit6ce28a9380ee0acb36c31f09fa4c58e9115016e0 (patch)
treef923f0e2bddecc8fc9ad613bab41142f2096749a
parent179d3b7e051c24a83153e654916ac40ed2dc417d (diff)
downloadimlib2-6ce28a9380ee0acb36c31f09fa4c58e9115016e0.tar.gz
ICO loader: Debug tweaks
-rw-r--r--src/modules/loaders/loader_ico.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/loaders/loader_ico.c b/src/modules/loaders/loader_ico.c
index ee02491..cdb209e 100644
--- a/src/modules/loaders/loader_ico.c
+++ b/src/modules/loaders/loader_ico.c
@@ -133,7 +133,7 @@ ico_read_idir(ico_t * ico, int ino)
SWAP_LE_32_INPLACE(ie->ide.size);
SWAP_LE_32_INPLACE(ie->ide.offs);
- D("Entry %2d: Idir: WxHxD = %dx%dx%d, colors = %d\n",
+ DL("Entry %2d: Idir: WxHxD = %dx%dx%d, colors = %d\n",
ino, ie->w, ie->h, ie->ide.bpp, ie->ide.colors);
}
@@ -169,7 +169,7 @@ ico_read_icon(ico_t * ico, int ino)
goto bail;
}
- D("Entry %2d: Icon: WxHxD = %dx%dx%d, colors = %d\n",
+ DL("Entry %2d: Icon: WxHxD = %dx%dx%d, colors = %d\n",
ino, ie->w, ie->h, ie->bih.bpp, ie->bih.colors);
if (ie->bih.width != ie->w || ie->bih.height != 2 * ie->h)
@@ -187,7 +187,7 @@ ico_read_icon(ico_t * ico, int ino)
case 1:
case 4:
case 8:
- D("Allocating a %d slot colormap\n", ie->bih.colors);
+ DL("Allocating a %d slot colormap\n", ie->bih.colors);
if (UINT_MAX / sizeof(DATA32) < ie->bih.colors)
goto bail;
size = ie->bih.colors * sizeof(DATA32);
@@ -215,7 +215,7 @@ ico_read_icon(ico_t * ico, int ino)
goto bail;
if (mm_read(ie->pxls, size))
goto bail;
- D("Pixel data size: %u\n", size);
+ DL("Pixel data size: %u\n", size);
size = ((ie->w + 31) / 32 * 4) * ie->h;
ie->mask = malloc(size);
@@ -223,7 +223,7 @@ ico_read_icon(ico_t * ico, int ino)
goto bail;
if (mm_read(ie->mask, size))
goto bail;
- D("Mask data size: %u\n", size);
+ DL("Mask data size: %u\n", size);
return;