forked from AuroraMiddleware/gtk
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:
parent
1a8b864976
commit
746d1cd9d4
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user