[gegl] gegl:lua adapt to updated gegl_buffer_sample() API



commit 37006dce73551483becde3b4b91b2149e977884f
Author: Nils Philippsen <nils redhat com>
Date:   Tue Jul 5 11:39:17 2011 +0200

    gegl:lua adapt to updated gegl_buffer_sample() API

 operations/workshop/external/gluas.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
index 046bf8c..0fe7e91 100644
--- a/operations/workshop/external/gluas.c
+++ b/operations/workshop/external/gluas.c
@@ -242,7 +242,7 @@ get_rgba_pixel (void       *data,
       gint i;
       if (!p->in_drawable)
         return;
-      gegl_buffer_sample (p->in_drawable, x, y, 1.0, buf,
+      gegl_buffer_sample (p->in_drawable, x, y, NULL, buf,
                           p->rgba_float,
                           GEGL_INTERPOLATION_NEAREST);
       for (i = 0; i < 4; i++)
@@ -253,7 +253,7 @@ get_rgba_pixel (void       *data,
       gint i;
       if (!p->aux_drawable)
         return;
-      gegl_buffer_sample (p->aux_drawable, x, y, 1.0, buf,
+      gegl_buffer_sample (p->aux_drawable, x, y, NULL, buf,
                           p->rgba_float,
                           GEGL_INTERPOLATION_NEAREST);
       for (i = 0; i < 4; i++)



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