summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
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
parentfcde8479cca084c59be1bfd72a4dc4b72bbd66f8 (diff)
downloadgdk-pixbuf-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')
-rw-r--r--gdk-pixbuf/ChangeLog6
-rw-r--r--gdk-pixbuf/io-bmp.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index dea1fc5e8..6ad4c7b9c 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -1,3 +1,9 @@
+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)
+
Sun Mar 27 19:59:52 2005 Manish Singh <yosh@gimp.org>
* io-bmp.c (grow_buffer): reject 0-sized buffers as corrupt header
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 5b70ea047..f33f9f5e5 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);