[gegl] sampler-nearest.c: revert context_rect to the sensible {0, 0, 1, 1}



commit 67c9c1ddf3007845f6b216b412259bc8f77cd9ad
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Tue Nov 27 17:05:06 2012 -0500

    sampler-nearest.c: revert context_rect to the sensible {0,0,1,1}

 gegl/buffer/gegl-sampler-nearest.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index b2f876a..0a8e900 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -57,10 +57,10 @@ gegl_sampler_nearest_class_init (GeglSamplerNearestClass *klass)
 static void
 gegl_sampler_nearest_init (GeglSamplerNearest *self)
 {
-  GEGL_SAMPLER (self)->context_rect[0].x = -1;
-  GEGL_SAMPLER (self)->context_rect[0].y = -1;
-  GEGL_SAMPLER (self)->context_rect[0].width = 3;
-  GEGL_SAMPLER (self)->context_rect[0].height = 3;
+  GEGL_SAMPLER (self)->context_rect[0].x = 0;
+  GEGL_SAMPLER (self)->context_rect[0].y = 0;
+  GEGL_SAMPLER (self)->context_rect[0].width = 1;
+  GEGL_SAMPLER (self)->context_rect[0].height = 1;
   GEGL_SAMPLER (self)->interpolate_format = babl_format ("RaGaBaA float");
 }
 



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