[gimp] app: in gimp_gegl_create_flatten_node(), explicitly set color node format
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: in gimp_gegl_create_flatten_node(), explicitly set color node format
- Date: Mon, 25 Feb 2019 16:31:30 +0000 (UTC)
commit ebf2c2fef13edf77524b906e39b2fc1d1aa686a6
Author: Ell <ell_se yahoo com>
Date: Mon Feb 25 11:10:17 2019 -0500
app: in gimp_gegl_create_flatten_node(), explicitly set color node format
In gimp_gegl_create_flatten_node(), explicitly set the output
format of the background gegl:color node according to the composite
space, so that no conversion is required during compositing.
app/gegl/gimp-gegl-nodes.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/app/gegl/gimp-gegl-nodes.c b/app/gegl/gimp-gegl-nodes.c
index 6bca2dd0d8..47ccdd174b 100644
--- a/app/gegl/gimp-gegl-nodes.c
+++ b/app/gegl/gimp-gegl-nodes.c
@@ -56,6 +56,11 @@ gimp_gegl_create_flatten_node (const GimpRGB *background,
color = gegl_node_new_child (node,
"operation", "gegl:color",
"value", c,
+ "format", gimp_layer_mode_get_format (
+ GIMP_LAYER_MODE_NORMAL,
+ composite_space,
+ GIMP_LAYER_COLOR_SPACE_AUTO,
+ NULL),
NULL);
g_object_unref (c);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]