Bill Skaggs <weskaggs@primate.ucdavis.edu>

* app/core/gimpchannel-combine.c: put in two lines accidentally
	omitted in previous change, improve doc comment.
This commit is contained in:
William Skaggs 2004-07-19 14:12:30 +00:00
parent c5e78fe18a
commit b48a7cce8f
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-07-19 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpchannel-combine.c: put in two lines accidentally
omitted in previous change, improve doc comment.
2004-07-19 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimpwin32-io.h: added copyright header, added

View file

@ -201,9 +201,9 @@ gimp_channel_combine_rect (GimpChannel *mask,
* @h: height of ellipse bounding box
* @antialias: if %TRUE, antialias the ellipse
*
* Mainly used for elliptical selections. If @op is "replace" or
* "add", sets pixels within the ellipse to 255. If @op is
* "subtract", sets pixels within to zero. If antialiasing is
* Mainly used for elliptical selections. If @op is %GIMP_CHANNEL_OP_REPLACE or
* %GIMP_CHANNEL_OP_ADD, sets pixels within the ellipse to 255. If @op is
* %GIMP_CHANNEL_OP_SUBTRACT, sets pixels within to zero. If antialiasing is
* turned on, a pixels that impinge on the edge of the ellipse
* are set to intermediate values, depending on how much they
* overlap.
@ -235,6 +235,9 @@ gimp_channel_combine_ellipse (GimpChannel *mask,
if (!w || !h)
return;
a = w / 2.;
b = h / 2.;
a_sqr = (w * w / 4.0);
b_sqr = (h * h / 4.0);
aob_sqr = a_sqr / b_sqr;