mirror of https://github.com/GNOME/gimp.git
Bug 783755 - Smudge should blend the smudged colors using linear RGB
This reverts commit 94c6bb4603
, because
unlike what the bug title suggests, Smudge apparently *should* use
perceptual RGB, so now everything works as before.
This commit is contained in:
parent
3bea6dce03
commit
6f324b867a
|
@ -196,9 +196,9 @@ gimp_heal_sub (GeglBuffer *top_buffer,
|
|||
gint n_components = babl_format_get_n_components (format);
|
||||
|
||||
if (n_components == 2)
|
||||
format = babl_format ("YA float");
|
||||
format = babl_format ("Y'A float");
|
||||
else if (n_components == 4)
|
||||
format = babl_format ("RGBA float");
|
||||
format = babl_format ("R'G'B'A float");
|
||||
else
|
||||
g_return_if_reached ();
|
||||
|
||||
|
@ -239,9 +239,9 @@ gimp_heal_add (GeglBuffer *first_buffer,
|
|||
gint n_components = babl_format_get_n_components (format);
|
||||
|
||||
if (n_components == 2)
|
||||
format = babl_format ("YA float");
|
||||
format = babl_format ("Y'A float");
|
||||
else if (n_components == 4)
|
||||
format = babl_format ("RGBA float");
|
||||
format = babl_format ("R'G'B'A float");
|
||||
else
|
||||
g_return_if_reached ();
|
||||
|
||||
|
@ -552,10 +552,11 @@ gimp_heal_motion (GimpSourceCore *source_core,
|
|||
return;
|
||||
}
|
||||
|
||||
/* heal should work in perceptual space, use R'G'B' instead of RGB */
|
||||
src_copy = gegl_buffer_new (GEGL_RECTANGLE (0, 0,
|
||||
src_rect->width,
|
||||
src_rect->height),
|
||||
babl_format ("RGBA float"));
|
||||
babl_format ("R'G'B'A float"));
|
||||
|
||||
gegl_buffer_copy (src_buffer, src_rect, GEGL_ABYSS_NONE,
|
||||
src_copy,
|
||||
|
|
Loading…
Reference in New Issue