mirror of https://github.com/GNOME/gimp.git
pdb: clean up the channel mixel PDB compat proc
Fix indentation, remove unneeded casts.
This commit is contained in:
parent
0eeb741fae
commit
37dd1778ad
|
@ -913,30 +913,29 @@ plug_in_colors_channel_mixer_invoker (GimpProcedure *procedure,
|
|||
gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
|
||||
{
|
||||
GeglNode *node = NULL;
|
||||
if ((gboolean) monochrome)
|
||||
|
||||
if (monochrome)
|
||||
{
|
||||
node =
|
||||
gegl_node_new_child (NULL,
|
||||
node = gegl_node_new_child (NULL,
|
||||
"operation", "gegl:mono-mixer",
|
||||
"red", (gdouble) rr_gain,
|
||||
"green", (gdouble) rg_gain,
|
||||
"blue", (gdouble) rb_gain,
|
||||
"red", rr_gain,
|
||||
"green", rg_gain,
|
||||
"blue", rb_gain,
|
||||
NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
node =
|
||||
gegl_node_new_child (NULL,
|
||||
node = gegl_node_new_child (NULL,
|
||||
"operation", "gegl:channel-mixer",
|
||||
"rr-gain", (gdouble) rr_gain,
|
||||
"rg-gain", (gdouble) rg_gain,
|
||||
"rb-gain", (gdouble) rb_gain,
|
||||
"gr-gain", (gdouble) gr_gain,
|
||||
"gg-gain", (gdouble) gg_gain,
|
||||
"gb-gain", (gdouble) gb_gain,
|
||||
"br-gain", (gdouble) br_gain,
|
||||
"bg-gain", (gdouble) bg_gain,
|
||||
"bb-gain", (gdouble) bb_gain,
|
||||
"rr-gain", rr_gain,
|
||||
"rg-gain", rg_gain,
|
||||
"rb-gain", rb_gain,
|
||||
"gr-gain", gr_gain,
|
||||
"gg-gain", gg_gain,
|
||||
"gb-gain", gb_gain,
|
||||
"br-gain", br_gain,
|
||||
"bg-gain", bg_gain,
|
||||
"bb-gain", bb_gain,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
|
|
@ -658,30 +658,29 @@ HELP
|
|||
gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
|
||||
{
|
||||
GeglNode *node = NULL;
|
||||
if ((gboolean) monochrome)
|
||||
|
||||
if (monochrome)
|
||||
{
|
||||
node =
|
||||
gegl_node_new_child (NULL,
|
||||
node = gegl_node_new_child (NULL,
|
||||
"operation", "gegl:mono-mixer",
|
||||
"red", (gdouble) rr_gain,
|
||||
"green", (gdouble) rg_gain,
|
||||
"blue", (gdouble) rb_gain,
|
||||
"red", rr_gain,
|
||||
"green", rg_gain,
|
||||
"blue", rb_gain,
|
||||
NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
node =
|
||||
gegl_node_new_child (NULL,
|
||||
node = gegl_node_new_child (NULL,
|
||||
"operation", "gegl:channel-mixer",
|
||||
"rr-gain", (gdouble) rr_gain,
|
||||
"rg-gain", (gdouble) rg_gain,
|
||||
"rb-gain", (gdouble) rb_gain,
|
||||
"gr-gain", (gdouble) gr_gain,
|
||||
"gg-gain", (gdouble) gg_gain,
|
||||
"gb-gain", (gdouble) gb_gain,
|
||||
"br-gain", (gdouble) br_gain,
|
||||
"bg-gain", (gdouble) bg_gain,
|
||||
"bb-gain", (gdouble) bb_gain,
|
||||
"rr-gain", rr_gain,
|
||||
"rg-gain", rg_gain,
|
||||
"rb-gain", rb_gain,
|
||||
"gr-gain", gr_gain,
|
||||
"gg-gain", gg_gain,
|
||||
"gb-gain", gb_gain,
|
||||
"br-gain", br_gain,
|
||||
"bg-gain", bg_gain,
|
||||
"bb-gain", bb_gain,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue