[gegl] sampler.c: same amount of elbow room in both directions even though the tile is rectangular



commit c32967d6741b715f9ad197e2d1dd273b5c53c6b5
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Thu Dec 20 19:42:07 2012 -0500

    sampler.c: same amount of elbow room in both directions even though the tile is rectangular

 gegl/buffer/gegl-sampler.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index b545aed..6c20883 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -274,7 +274,7 @@ gegl_sampler_get_ptr (GeglSampler *const sampler,
       fetch_rectangle.y =
         y + sampler->context_rect[0].y -
         (maximum_width_and_height - sampler->context_rect[0].height) /
-        (gint) 8;
+        (gint) 4;
 
       fetch_rectangle.width  = (gint) 2 * maximum_width_and_height;
       fetch_rectangle.height = maximum_width_and_height;
@@ -355,7 +355,7 @@ gegl_sampler_get_from_buffer (GeglSampler *const sampler,
         (gint) 8;
       fetch_rectangle.y = y -
         (maximum_width_and_height - sampler->context_rect[0].height) /
-        (gint) 8;
+        (gint) 4;
 
       fetch_rectangle.width  = (gint) 2 * maximum_width_and_height;
       fetch_rectangle.height = maximum_width_and_height;
@@ -448,7 +448,7 @@ gegl_sampler_get_from_mipmap (GeglSampler *const sampler,
       fetch_rectangle.y =
         y + sampler->context_rect[level].y -
         (maximum_width_and_height - sampler->context_rect[level].height) /
-        (gint) 8;
+        (gint) 4;
 
       fetch_rectangle.width  = (gint) 2 * maximum_width_and_height;
       fetch_rectangle.height = maximum_width_and_height;



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