diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-03-11 23:02:39 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-03-11 23:02:39 +0000 |
commit | 71b59291e645458276b61f8f342cf4de944d8ad5 (patch) | |
tree | 20cd10c8280d9423b14813070f731c4b360bec05 /gdk-pixbuf/io-ico.c | |
parent | 6d0099b3d393d14259434f4d0e16d0ae2c363819 (diff) | |
download | gdk-pixbuf-71b59291e645458276b61f8f342cf4de944d8ad5.tar.gz |
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)
Diffstat (limited to 'gdk-pixbuf/io-ico.c')
-rw-r--r-- | gdk-pixbuf/io-ico.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c index c81d0d3bf..a83fce83c 100644 --- a/gdk-pixbuf/io-ico.c +++ b/gdk-pixbuf/io-ico.c @@ -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) |