summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-bmp.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-03-28 04:16:10 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-03-28 04:16:10 +0000
commiteb96e5c861e6454527487ce27ebaf24c457c9a38 (patch)
tree3b0626cd95f3645678cc8f16e6cb397498a8c35e /gdk-pixbuf/io-bmp.c
parentfcde8479cca084c59be1bfd72a4dc4b72bbd66f8 (diff)
downloadgtk+-eb96e5c861e6454527487ce27ebaf24c457c9a38.tar.gz
Use the correct update regions for compressed bmps. (#150664, Owen Taylor,
2005-03-27 Matthias Clasen <mclasen@redhat.com> * io-bmp.c (DoCompressed): Use the correct update regions for compressed bmps. (#150664, Owen Taylor, test images provided by David Costanzo)
Diffstat (limited to 'gdk-pixbuf/io-bmp.c')
-rw-r--r--gdk-pixbuf/io-bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 5b70ea047d..f33f9f5e5d 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -1044,7 +1044,7 @@ DoCompressed(struct bmp_progressive_state *context, GError **error)
gint new_y = MIN (context->compr.y, context->Header.height);
(*context->updated_func) (context->pixbuf,
0,
- y,
+ context->Header.height - new_y,
context->Header.width,
new_y - y,
context->user_data);