[gdk-pixbuf] ico: Add debug for which ico entry is selected
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] ico: Add debug for which ico entry is selected
- Date: Wed, 14 Dec 2016 19:17:24 +0000 (UTC)
commit a8413101120fcb2d22d1d115f191545f7b62e881
Author: Bastien Nocera <hadess hadess net>
Date: Wed Dec 14 15:15:21 2016 +0100
ico: Add debug for which ico entry is selected
gdk-pixbuf/io-ico.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c
index 7b7d977..f651bdc 100644
--- a/gdk-pixbuf/io-ico.c
+++ b/gdk-pixbuf/io-ico.c
@@ -348,8 +348,12 @@ static void DecodeHeader(guchar *Data, gint Bytes,
/* A compressed icon, try the next one */
if ((BIH[16] != 0) || (BIH[17] != 0) || (BIH[18] != 0)
- || (BIH[19] != 0))
+ || (BIH[19] != 0)) {
+ DEBUG(g_print("Skipping icon with score %d, as it is compressed\n",
entry->ImageScore));
continue;
+ }
+
+ DEBUG(g_print("Selecting icon with score %d\n", entry->ImageScore));
/* If we made it to here then we have selected a BIH structure
* in a format that we can parse */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]