app/layer.c

Tue Oct 19 21:50:52 BST 1999 Andy Thomas <alt@gimp.org>

	* app/layer.c

	Fixed rounding error in preview generating code that
	produced dithering where no dithering should have been!
This commit is contained in:
BST 1999 Andy Thomas 1999-10-19 20:56:51 +00:00 committed by Andy Thomas
parent b74d256981
commit 35539062e6
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
Tue Oct 19 21:50:52 BST 1999 Andy Thomas <alt@gimp.org>
* app/layer.c
Fixed rounding error in preview generating code that
produced dithering where no dithering should have been!
1999-10-19 Michael Natterer <mitch@gimp.org>
* gimpcontext.[ch]: changed the "parent context" implementation:

View File

@ -1438,7 +1438,7 @@ layer_preview_scale (gint type,
{
b = bytes;
while (b--)
*d++ = (unsigned char) (*r++ * tot_frac);
*d++ = (unsigned char) ((*r++ * tot_frac)+0.5);
}
dest += destwidth;

View File

@ -1438,7 +1438,7 @@ layer_preview_scale (gint type,
{
b = bytes;
while (b--)
*d++ = (unsigned char) (*r++ * tot_frac);
*d++ = (unsigned char) ((*r++ * tot_frac)+0.5);
}
dest += destwidth;

View File

@ -1438,7 +1438,7 @@ layer_preview_scale (gint type,
{
b = bytes;
while (b--)
*d++ = (unsigned char) (*r++ * tot_frac);
*d++ = (unsigned char) ((*r++ * tot_frac)+0.5);
}
dest += destwidth;