core: Fix Equalize TRC compared to 2.10
In GIMP 2.10, gimp_histogram_new () takes a boolean parameter to indicate if it should be rendered in a linear or non-linear TRC. In GIMP 3.0, this function instead takes a GimpTRCType where 0 is equal to the linear enum and 1 is equal to the non-linear enum. Since gimp_drawable_equalize () still passes FALSE as it did in 2.10, this is treated as 0 and thus setting it as a linear operation. This patch changes the FALSE to be GIMP_TRC_NON_LINEAR, both for clarify and to better match the 2.10 behavior.
This commit is contained in:
parent
2af5aa651a
commit
6949400a03
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ gimp_drawable_equalize (GimpDrawable *drawable,
|
|||
image = gimp_item_get_image (GIMP_ITEM (drawable));
|
||||
selection = gimp_image_get_mask (image);
|
||||
|
||||
histogram = gimp_histogram_new (FALSE);
|
||||
histogram = gimp_histogram_new (GIMP_TRC_NON_LINEAR);
|
||||
gimp_drawable_calculate_histogram (drawable, histogram, FALSE);
|
||||
|
||||
equalize = gegl_node_new_child (NULL,
|
||||
|
|
|
|||
Loading…
Reference in a new issue