[gegl: 12/25] transform-core.c/gegl_transform_get_invalidated by change: undo context_rect removal



commit 5ece60a125ea4c395d47290af9e78bd9edf8fbd3
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Fri Nov 23 22:41:59 2012 -0500

    transform-core.c/gegl_transform_get_invalidated by change: undo context_rect removal

 operations/transform/transform-core.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 99dec51..17501a9 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -648,20 +648,17 @@ gegl_transform_get_invalidated_by_change (GeglOperation       *op,
   OpTransform       *transform = OP_TRANSFORM (op);
   GeglMatrix3        matrix;
   GeglRectangle      affected_rect;
-#if 0
   GeglRectangle      context_rect;
   GeglSampler       *sampler;
-#endif
+
   gdouble            affected_points [8];
   gint               i;
   GeglRectangle      region = *input_region;
 
-#if 0
   sampler = gegl_buffer_sampler_new (NULL, babl_format("RaGaBaA float"),
       gegl_sampler_type_from_string (transform->filter));
   context_rect = *gegl_sampler_get_context_rect (sampler);
   g_object_unref (sampler);
-#endif
 
   gegl_transform_create_matrix (transform, &matrix);
 
@@ -682,12 +679,10 @@ gegl_transform_get_invalidated_by_change (GeglOperation       *op,
       return region;
     }
 
-#if 0
   region.x      += context_rect.x;
   region.y      += context_rect.y;
   region.width  += context_rect.width;
   region.height += context_rect.height;
-#endif
 
   affected_points [0] = region.x - (gdouble) 0.5;
   affected_points [1] = region.y - (gdouble) 0.5;



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