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 | 746d1cd9d4f5c5f74f65c490274889ccbaa54cd1 (patch) | |
tree | e89768cb6009ef56b71ff0e481b288b32c5657bc /gdk-pixbuf/io-ico.c | |
parent | 1a8b8649765b89e3ef143cb525be97ee8fee9874 (diff) | |
download | gtk+-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/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 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) |