Calculate LineWidth for 16bpp from width, like for the other depths.

2003-03-11  Matthias Clasen  <maclas@gmx.de>

	* io-ico.c (DecodeHeader): Calculate LineWidth for 16bpp from
	width, like for the other depths.  (noticed by Marijn Ros)
This commit is contained in:
Matthias Clasen 2003-03-11 23:02:39 +00:00 committed by Matthias Clasen
parent 1a8b864976
commit 746d1cd9d4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-03-11 Matthias Clasen <maclas@gmx.de>
* io-ico.c (DecodeHeader): Calculate LineWidth for 16bpp from
width, like for the other depths. (noticed by Marijn Ros)
2003-03-08 Matthias Clasen <maclas@gmx.de>
Bug #107664 continued:

View File

@ -370,7 +370,7 @@ static void DecodeHeader(guchar *Data, gint Bytes,
else if (State->Type == 24)
State->LineWidth = State->Header.width * 3;
else if (State->Type == 16)
State->LineWidth = State->Header.height * 2;
State->LineWidth = State->Header.width * 2;
else if (State->Type == 8)
State->LineWidth = State->Header.width * 1;
else if (State->Type == 4)