mirror of https://github.com/GNOME/gimp.git
app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected
This commit is contained in:
parent
6efd812d08
commit
72894671d5
|
@ -257,7 +257,7 @@ gimp_gegl_color_new (const GimpRGB *rgb)
|
|||
g_return_val_if_fail (rgb != NULL, NULL);
|
||||
|
||||
color = gegl_color_new (NULL);
|
||||
gegl_color_set_rgba (color, rgb->r, rgb->g, rgb->b, rgb->a);
|
||||
gegl_color_set_pixel (color, babl_format ("R'G'B'A double"), rgb);
|
||||
|
||||
return color;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue