[gimp/goat-invasion: 403/412] app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 403/412] app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected
- Date: Tue, 3 Apr 2012 10:06:59 +0000 (UTC)
commit d8d6ce39ba6b8f61af519657d3f52195d36dd28a
Author: Michael Natterer <mitch gimp org>
Date: Mon Apr 2 18:43:05 2012 +0200
app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected
app/gegl/gimp-gegl-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-utils.c b/app/gegl/gimp-gegl-utils.c
index ab4ff9a..0d8247f 100644
--- a/app/gegl/gimp-gegl-utils.c
+++ b/app/gegl/gimp-gegl-utils.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]