Fix the update region notification to handle top-to-bottom and

2002-09-27  Federico Mena Quintero  <federico@ximian.com>

	* io-bmp.c (OneLine): Fix the update region notification to handle
	top-to-bottom and bottom-to-top BMPs correctly.
This commit is contained in:
Federico Mena Quintero
2002-09-27 21:40:35 +00:00
committed by Federico Mena Quintero
parent 7c0ed9ea8a
commit 1dfa0ef23b
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2002-09-27 Federico Mena Quintero <federico@ximian.com>
* io-bmp.c (OneLine): Fix the update region notification to handle
top-to-bottom and bottom-to-top BMPs correctly.
2002-09-25 Federico Mena Quintero <federico@ximian.com>
* io-jpeg.c: Merged the CMYK changes from HEAD.

View File

@@ -843,9 +843,11 @@ static void OneLine(struct bmp_progressive_state *context)
if (context->updated_func != NULL) {
(*context->updated_func) (context->pixbuf,
0,
context->Lines,
(context->Header.Negative ?
(context->Lines - 1) :
(context->Header.height - context->Lines)),
context->Header.width,
2,
1,
context->user_data);
}