[gegl: 19/25] sampler-nearest.c: put back slightly larger context_rect



commit e46c82a3e4622bd05c7dec6dc9e3655a595f4224
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Sat Nov 24 10:04:14 2012 -0500

    sampler-nearest.c: put back slightly larger context_rect

 gegl/buffer/gegl-sampler-nearest.c    |    1 -
 operations/transform/transform-core.c |    5 +----
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index e107ad9..b2f876a 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -25,7 +25,6 @@
 #include "gegl-buffer-private.h"
 #include "gegl-sampler-nearest.h"
 
-
 enum
 {
   PROP_0,
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 849fc91..4eb69bb 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -500,6 +500,7 @@ gegl_transform_get_bounding_box (GeglOperation *op)
       /*
        * Is in_rect = {0,0,0,0} (the empty rectangle with no point in
        * it, since width=height=0) used to communicate something?
+       * In any case, it is changed above to {0,0,1,1}.
        */
       return in_rect;
     }
@@ -510,7 +511,6 @@ gegl_transform_get_bounding_box (GeglOperation *op)
    * output data, there would appear to be no need to enlarge it by
    * context_rect. And yet it's done.
    */
-#if 0
   if (!gegl_transform_matrix3_allow_fast_translate (&matrix))
     {
       in_rect.x      += context_rect.x;
@@ -523,7 +523,6 @@ gegl_transform_get_bounding_box (GeglOperation *op)
       in_rect.width  += (context_rect.width  - (gint) 1);
       in_rect.height += (context_rect.height - (gint) 1);
     }
-#endif
 
   /*
    * Convert indices to absolute positions.
@@ -679,12 +678,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]