[gimp] app: make compositing of grain extract blend mode consistent
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make compositing of grain extract blend mode consistent
- Date: Fri, 13 Jan 2017 13:27:21 +0000 (UTC)
commit 75173b97d91c47142eb8f0a65bc59a37dc989169
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Jan 13 14:26:05 2017 +0100
app: make compositing of grain extract blend mode consistent
.../layer-modes/gimpoperationgrainextract.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/operations/layer-modes/gimpoperationgrainextract.c
b/app/operations/layer-modes/gimpoperationgrainextract.c
index 733bb46..05c0793 100644
--- a/app/operations/layer-modes/gimpoperationgrainextract.c
+++ b/app/operations/layer-modes/gimpoperationgrainextract.c
@@ -96,7 +96,8 @@ gimp_operation_grain_extract_process_pixels (gfloat *in,
{
gfloat comp_alpha;
- comp_alpha = MIN (in[ALPHA], layer[ALPHA]) * opacity;
+ comp_alpha = layer[ALPHA] * opacity;
+
if (has_mask)
comp_alpha *= *mask;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]