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)
This commit is contained in:
Matthias Clasen 2005-03-28 04:16:10 +00:00 committed by Matthias Clasen
parent fcde8479cc
commit eb96e5c861
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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);