[gimp/goat-invasion: 403/608] 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/608] app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected
- Date: Fri, 27 Apr 2012 20:59:16 +0000 (UTC)
commit f3c8d76c008e06700aeccb029c133ea256986417
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]