[gegl] gegl:stress: remove unneeded function call/copy



commit b69b44dad9f1c74c95d314c039fd3ce9e5967c16
Author: �yvind Kolås <pippin gimp org>
Date:   Sun Mar 21 20:05:27 2010 +0000

    gegl:stress: remove unneeded function call/copy

 operations/common/envelopes.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/operations/common/envelopes.h b/operations/common/envelopes.h
index c042cfa..dc9a4b7 100644
--- a/operations/common/envelopes.h
+++ b/operations/common/envelopes.h
@@ -117,9 +117,7 @@ retry:                      /* if we've sampled outside the valid image
         goto retry;
 
       {
-        gfloat pixel[4];
-
-        sample (buf, width, height, u, v, pixel);
+        gfloat *pixel = (buf + ((width * v) + u) * 4);
 
         if (pixel[3]>0.0) /* ignore fully transparent pixels */
           {



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