[gegl/samplers] bug in triangle_radius
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/samplers] bug in triangle_radius
- Date: Fri, 17 Jun 2011 02:15:49 +0000 (UTC)
commit 2d45ab7fe7ef6dd27ed8c5100ec611ef10fd643a
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date: Thu Jun 16 22:15:41 2011 -0400
bug in triangle_radius
gegl/buffer/gegl-sampler-lohalo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index b2d879c..fb55e0b 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -1051,7 +1051,7 @@ triangle_radius(const gfloat radius,
const gfloat r2 = q1 * q1 + q2 * q2;
const gfloat weight =
(
- ( ( s*s+t*t >= radius*radius ) && ( r2 < (gfloat) 1. ) )
+ ( ( s*s+t*t < radius*radius ) && ( r2 < (gfloat) 1. ) )
? (gfloat) ( (gfloat) 1. - sqrtf( (float) r2 ) )
: (gfloat) 0.
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]