[gegl] linear-sinusoid: use output-space pixels as phase unit
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] linear-sinusoid: use output-space pixels as phase unit
- Date: Sun, 5 Feb 2017 19:35:33 +0000 (UTC)
commit b84e069d1ddf289a551aeb136b0a0b938d60f1a0
Author: Ell <ell_se yahoo com>
Date: Sun Feb 5 11:10:50 2017 -0500
linear-sinusoid: use output-space pixels as phase unit
operations/workshop/linear-sinusoid.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/workshop/linear-sinusoid.c b/operations/workshop/linear-sinusoid.c
index 1446e43..dba8f0f 100644
--- a/operations/workshop/linear-sinusoid.c
+++ b/operations/workshop/linear-sinusoid.c
@@ -162,10 +162,10 @@ process (GeglOperation *operation,
j_dx = sin (x_angle) * x_scale;
j_dy = sin (y_angle) * y_scale;
- x0 = o->x_phase * scale +
+ x0 = o->x_phase * x_scale +
(roi->x - o->x_offset) * i_dx +
(roi->y - o->y_offset) * j_dx;
- y0 = o->y_phase * scale +
+ y0 = o->y_phase * y_scale +
(roi->x - o->x_offset) * i_dy +
(roi->y - o->y_offset) * j_dy;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]