mirror of https://github.com/GNOME/gimp.git
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:
parent
b74d256981
commit
35539062e6
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue