diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-07-06 23:54:50 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-07-06 23:54:50 +0000 |
commit | 724059ccdf8444b5f199606ef4b27d1d351f0875 (patch) | |
tree | 82bca79a1946e2c7403ee8d60f6e2a826e225035 /gdk-pixbuf/io-ico.c | |
parent | e4ab3810185b6eda9651f0f03d017893b906b868 (diff) | |
download | gtk+-724059ccdf8444b5f199606ef4b27d1d351f0875.tar.gz |
Correct computation of image height. (OneLine): Correct update
* io-ico.c (DecodeHeader): Correct computation of image height.
(OneLine): Correct update notification.
Diffstat (limited to 'gdk-pixbuf/io-ico.c')
-rw-r--r-- | gdk-pixbuf/io-ico.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c index 1a1de441e4..d39f4c92ed 100644 --- a/gdk-pixbuf/io-ico.c +++ b/gdk-pixbuf/io-ico.c @@ -342,7 +342,7 @@ static void DecodeHeader(guchar *Data, gint Bytes, return; } State->Header.height = - (int)(BIH[11] << 24) + (BIH[10] << 16) + (BIH[9] << 8) + (BIH[8])/2; + (int)((BIH[11] << 24) + (BIH[10] << 16) + (BIH[9] << 8) + (BIH[8]))/2; /* /2 because the BIH height includes the transparency mask */ if (State->Header.height == 0) { g_set_error (error, @@ -797,9 +797,9 @@ static void OneLine(struct ico_progressive_state *context) if (context->updated_func != NULL) { (*context->updated_func) (context->pixbuf, 0, - context->Lines, + context->Lines % context->Header.height, context->Header.width, - context->Header.height, + 1, context->user_data); } |