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:37:30 +00:00 committed by Federico Mena Quintero
parent 393ad7381e
commit 8cec022f3f
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-19 Matthias Clasen <maclas@gmx.de>
* Revert the previous change; the symbols need to be exported

View File

@ -802,9 +802,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);
}