[gimp/gimp-2-8] Bug 679195 - Foreground Select Tool Mask Inverted



commit 653c4e98df693dbe093d703c93d10582d51b4c9f
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jul 15 01:22:14 2013 +0200

    Bug 679195 - Foreground Select Tool Mask Inverted
    
    render_image_alpha(): invert the mask so it masks what is *not* the
    foreground object.

 app/display/gimpdisplayshell-render.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-render.c b/app/display/gimpdisplayshell-render.c
index a8811ec..ac6aaeb 100644
--- a/app/display/gimpdisplayshell-render.c
+++ b/app/display/gimpdisplayshell-render.c
@@ -262,7 +262,7 @@ render_image_alpha (RenderInfo *info)
 
       for (x = info->x; x < xe; x++, src++, dest++)
         {
-          *dest = *src;
+          *dest = 255 - *src;
         }
 
       if (++y == ye)


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