summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-ico.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@fenrus.demon.nl>1999-12-05 13:47:26 +0000
committerArjan van de Ven <arjan@src.gnome.org>1999-12-05 13:47:26 +0000
commita03ac28c6e6755db519e329ab87994767624bdd7 (patch)
tree42f0d50c3be08d140e0a002e330573e03d6f9b29 /gdk-pixbuf/io-ico.c
parent631f507f58a98f208b22aac4f121d05da579b73f (diff)
downloadgdk-pixbuf-a03ac28c6e6755db519e329ab87994767624bdd7.tar.gz
Bug in palet-size calculation fixed
1999-12-05 Arjan van de Ven <arjan@fenrus.demon.nl> * gdk-pixbuf/io-ico.c: Bug in palet-size calculation fixed
Diffstat (limited to 'gdk-pixbuf/io-ico.c')
-rw-r--r--gdk-pixbuf/io-ico.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c
index b7719a795..5990c8f19 100644
--- a/gdk-pixbuf/io-ico.c
+++ b/gdk-pixbuf/io-ico.c
@@ -283,7 +283,8 @@ static void DecodeHeader(guchar *Data, gint Bytes,
/* Determine the palette size. If the header indicates 0, it
is actually the maximum for the bpp. You have to love the
guys who made the spec. */
- I =(int)(BIH[35] << 24) + (BIH[34] << 16) + (BIH[33] << 8) + (BIH[32]);
+ I = (int)(BIH[35] << 24) + (BIH[34] << 16) + (BIH[33] << 8) + (BIH[32]);
+ I = I*4;
if ((I==0)&&(State->Type==1))
I = 2*4;
if ((I==0)&&(State->Type==4))