[gegl] common/warp: fix interpolation reversal
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] common/warp: fix interpolation reversal
- Date: Mon, 17 Feb 2014 18:39:09 +0000 (UTC)
commit b44762ba8f768b925d35d8d8519cf2f93fdf4fab
Author: Alexia Death <alexiadeath gmail com>
Date: Mon Feb 17 20:27:14 2014 +0200
common/warp: fix interpolation reversal
operations/common/warp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/warp.c b/operations/common/warp.c
index d00cc91..d1ff0d9 100644
--- a/operations/common/warp.c
+++ b/operations/common/warp.c
@@ -203,7 +203,7 @@ get_stamp_force (GeglChantO *o,
before = priv->lookup[a];
after = priv->lookup[a + 1];
- return ratio * before + (1.0 - ratio) * after;
+ return (1.0 - ratio) * before + ratio * after;
}
return 0.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]