[gegl] linear-sinusoid: use output-space pixels as phase unit



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]