[gegl/soc-2013-opecl-ops] buffer: Set correct shift in buffer_linear_new



commit 5cdd6874abe032180c037818ba2fad1b6f90176e
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Mon Sep 9 11:58:41 2013 -0700

    buffer: Set correct shift in buffer_linear_new

 gegl/buffer/gegl-buffer-linear.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-linear.c b/gegl/buffer/gegl-buffer-linear.c
index 1d64412..b57ab6f 100644
--- a/gegl/buffer/gegl-buffer-linear.c
+++ b/gegl/buffer/gegl-buffer-linear.c
@@ -38,8 +38,8 @@ gegl_buffer_linear_new2 (const GeglRectangle *extent,
   buffer = g_object_new (GEGL_TYPE_BUFFER,
                        "x",          extent->x,
                        "y",          extent->y,
-                       "shift-x",    0,
-                       "shift-y",    0,
+                       "shift-x",    -extent->x,
+                       "shift-y",    -extent->y,
                        "width",      extent->width,
                        "height",     extent->height,
                        "tile-width", rowstride,


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