summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-ico.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-03-11 23:02:39 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-03-11 23:02:39 +0000
commit71b59291e645458276b61f8f342cf4de944d8ad5 (patch)
tree20cd10c8280d9423b14813070f731c4b360bec05 /gdk-pixbuf/io-ico.c
parent6d0099b3d393d14259434f4d0e16d0ae2c363819 (diff)
downloadgdk-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.c2
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)