[gimp/goat-invasion: 403/526] app: fix gimp_gegl_color_new() to treat the passed GimpRGB as gamma corrected



commit 9c6166b38a25892e72e4abbb36e9653b1fbc036b
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]