[gnome-color-manager/colord: 61/72] When creating ICC profiles for a display, use relative-colormetric and a PCS of XYZ



commit ee0256bbaba7a1020b26db79865e4b5d3764e56d
Author: Richard Hughes <richard hughsie com>
Date:   Mon Feb 14 09:58:59 2011 +0000

    When creating ICC profiles for a display, use relative-colormetric and a PCS of XYZ

 src/gcm-profile.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-profile.c b/src/gcm-profile.c
index 5b164e4..bcdcebd 100644
--- a/src/gcm-profile.c
+++ b/src/gcm-profile.c
@@ -1022,7 +1022,9 @@ gcm_profile_save (GcmProfile *profile, const gchar *filename, GError **error)
 	/* this is all we support writing */
 	if (priv->colorspace == CD_COLORSPACE_RGB) {
 		cmsSetColorSpace (priv->lcms_profile, cmsSigRgbData);
-		cmsSetPCS (priv->lcms_profile, cmsSigLabData);
+		cmsSetPCS (priv->lcms_profile, cmsSigXYZData);
+		cmsSetHeaderRenderingIntent (priv->lcms_profile,
+					     INTENT_RELATIVE_COLORIMETRIC);
 	}
 	if (priv->kind == CD_PROFILE_KIND_DISPLAY_DEVICE)
 		cmsSetDeviceClass (priv->lcms_profile, cmsSigDisplayClass);



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