mirror of https://github.com/GNOME/gimp.git
use SQR(x) instead of x*x.
2007-03-31 Michael Natterer <mitch@gimp.org> * app/core/gimpdrawable-blend.c: use SQR(x) instead of x*x. svn path=/trunk/; revision=22211
This commit is contained in:
parent
b2ef4856b0
commit
00be2f5f8c
|
@ -1,3 +1,7 @@
|
|||
2007-03-31 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpdrawable-blend.c: use SQR(x) instead of x*x.
|
||||
|
||||
2007-03-31 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/paint/gimppaintcore.c (gimp_paint_core_start): set
|
||||
|
|
|
@ -274,7 +274,7 @@ gradient_calc_conical_sym_factor (gdouble dist,
|
|||
|
||||
/* Calculate offset from the start in pixels */
|
||||
|
||||
r = sqrt (x * x + y * y);
|
||||
r = sqrt (SQR (x) + SQR (y));
|
||||
|
||||
vec[0] = x / r;
|
||||
vec[1] = y / r;
|
||||
|
|
Loading…
Reference in New Issue