[gegl] operations: wind: fix last pixel determination for the 2 wind styles



commit 8007d261ec3d0c5c7fa2685e0f3f67530ba74162
Author: Thomas Manni <thomas manni free fr>
Date:   Sun Jun 7 20:14:10 2015 +0200

    operations: wind: fix last pixel determination for the 2 wind styles

 operations/common/wind.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/wind.c b/operations/common/wind.c
index b027fbe..9062f9a 100644
--- a/operations/common/wind.c
+++ b/operations/common/wind.c
@@ -594,13 +594,13 @@ process (GeglOperation       *operation,
 
       if (o->style == GEGL_WIND_STYLE_WIND)
         {
-          last_pix  = row_size - n_components;
+          last_pix  = row_size - (n_components * COMPARE_WIDTH);
           skip_rows = FALSE;
           render_wind_row (row_buf, n_components, last_pix, o, gr);
         }
       else
         {
-          last_pix = row_size - (n_components * COMPARE_WIDTH);
+          last_pix = row_size - n_components;
           skip_rows = render_blast_row (row_buf, n_components, last_pix, o, gr);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]