[gegl] lens-correct: Init alpha in CCM



commit 1f5c35a8c46b3c2e43653c30f6526a2d900db979
Author: Mukund Sivaraman <muks banu com>
Date:   Sun Sep 11 18:00:36 2011 +0530

    lens-correct: Init alpha in CCM

 operations/workshop/external/lens-correct.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/operations/workshop/external/lens-correct.c b/operations/workshop/external/lens-correct.c
index cdf01ce..2b77918 100644
--- a/operations/workshop/external/lens-correct.c
+++ b/operations/workshop/external/lens-correct.c
@@ -351,12 +351,13 @@ lens_distort_newl (gfloat              *src_buf,
   gint   tmpx, tmpy, x, y, rgb;
   gint   offset;
 
-  ChannelCorrectionModel ccm[3];
+  ChannelCorrectionModel ccm[4];
 
   /* Compute each dst pixel in turn and store into dst buffer. */
   ccm[0] = lens->red;
   ccm[1] = lens->green;
   ccm[2] = lens->blue;
+  ccm[3] = lens->alpha;
 
   for (rgb = 0; rgb < 4; rgb++)
     {



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