mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
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
This commit is contained in:
parent
631f507f58
commit
a03ac28c6e
@ -1,3 +1,8 @@
|
||||
1999-12-05 Arjan van de Ven <arjan@fenrus.demon.nl>
|
||||
|
||||
* gdk-pixbuf/io-ico.c: Bug in palet-size
|
||||
calculation fixed
|
||||
|
||||
1999-12-04 Arjan van de Ven <arjan@fenrus.demon.nl>
|
||||
|
||||
* gdk-pixbuf/io-bmp.c: Major cleanup, added support for
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user