summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
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
commit746d1cd9d4f5c5f74f65c490274889ccbaa54cd1 (patch)
treee89768cb6009ef56b71ff0e481b288b32c5657bc /gdk-pixbuf
parent1a8b8649765b89e3ef143cb525be97ee8fee9874 (diff)
downloadgtk+-746d1cd9d4f5c5f74f65c490274889ccbaa54cd1.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')
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/io-ico.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index 7fae7b9a91..4646841618 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -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:
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c
index c81d0d3bfb..a83fce83c0 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)