From a03ac28c6e6755db519e329ab87994767624bdd7 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Sun, 5 Dec 1999 13:47:26 +0000 Subject: [PATCH] Bug in palet-size calculation fixed 1999-12-05 Arjan van de Ven * gdk-pixbuf/io-ico.c: Bug in palet-size calculation fixed --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-ico.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index a6adbec11b..633bef3005 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +1999-12-05 Arjan van de Ven + + * gdk-pixbuf/io-ico.c: Bug in palet-size + calculation fixed + 1999-12-04 Arjan van de Ven * gdk-pixbuf/io-bmp.c: Major cleanup, added support for diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c index b7719a795f..5990c8f19c 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))