[gnome-color-manager] Encode the gamma of the generated profile in the VCGT tag



commit 9a69257f7200d0a81255bd833d3dcfd3a96b7c4b
Author: Richard Hughes <richard hughsie com>
Date:   Sun Oct 10 09:26:07 2010 +0100

    Encode the gamma of the generated profile in the VCGT tag

 libcolor-glib/gcm-profile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcolor-glib/gcm-profile.c b/libcolor-glib/gcm-profile.c
index 43c3418..9f4ae9d 100644
--- a/libcolor-glib/gcm-profile.c
+++ b/libcolor-glib/gcm-profile.c
@@ -1015,7 +1015,7 @@ gcm_profile_create_from_chroma (GcmProfile *profile, gdouble gamma,
 
 	/* create our generated profile */
 	priv->lcms_profile = cmsCreateRGBProfile (&white_point, &chroma, transfer_curve);
-	cmsSetEncodedICCversion (priv->lcms_profile, 2);
+	cmsWriteTag (priv->lcms_profile, cmsSigVcgtType, transfer_curve);
 	cmsFreeToneCurve (*transfer_curve);
 
 	/* success */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]