[gimp/gimp-2-8] Bug 679195 - Foreground Select Tool Mask Inverted
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 679195 - Foreground Select Tool Mask Inverted
- Date: Sun, 14 Jul 2013 23:24:50 +0000 (UTC)
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]