[gnome-color-manager/gnome-3-6] For the ColorMunki use high resolution measurement mode



commit 9ded4fa89ed050801af8d2cc7470e63f33802ae3
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Tue Dec 25 23:55:53 2012 +0100

    For the ColorMunki use high resolution measurement mode
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 src/gcm-calibrate-argyll.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index bcf2050..7a1471c 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -313,6 +313,11 @@ gcm_calibrate_argyll_display_neutralise (GcmCalibrateArgyll *calibrate_argyll,
 	const gchar *output_name;
 	guint display;
 	guint target_whitepoint;
+	CdSensorKind sensor_kind;
+
+	g_object_get (calibrate_argyll,
+		      "sensor-kind", &sensor_kind,
+		      NULL);
 
 	/* get shared data */
 	g_object_get (calibrate_argyll,
@@ -363,6 +368,9 @@ gcm_calibrate_argyll_display_neutralise (GcmCalibrateArgyll *calibrate_argyll,
 		g_ptr_array_add (array, g_strdup_printf ("-t%i", target_whitepoint));
 	g_ptr_array_add (array, g_strdup_printf ("-d%i", display));
 	g_ptr_array_add (array, g_strdup_printf ("-y%c", kind));
+	if (sensor_kind == CD_SENSOR_KIND_COLOR_MUNKI) {
+		g_ptr_array_add (array, g_strdup ("-H"));
+	}
 	g_ptr_array_add (array, g_strdup ("-P 0.5,0.5,0.8"));
 	g_ptr_array_add (array, g_strdup (basename));
 	argv = gcm_utils_ptr_array_to_strv (array);
@@ -512,6 +520,11 @@ gcm_calibrate_argyll_display_draw_and_measure (GcmCalibrateArgyll *calibrate_arg
 	gchar *basename = NULL;
 	const gchar *output_name;
 	guint display;
+	CdSensorKind sensor_kind;
+
+	g_object_get (calibrate_argyll,
+		      "sensor-kind", &sensor_kind,
+		      NULL);
 
 	/* get shared data */
 	g_object_get (calibrate_argyll,
@@ -559,6 +572,9 @@ gcm_calibrate_argyll_display_draw_and_measure (GcmCalibrateArgyll *calibrate_arg
 	g_ptr_array_add (array, g_strdup_printf ("-y%c", kind));
 	g_ptr_array_add (array, g_strdup ("-k"));
 	g_ptr_array_add (array, g_strdup_printf ("%s.cal", basename));
+	if (sensor_kind == CD_SENSOR_KIND_COLOR_MUNKI) {
+		g_ptr_array_add (array, g_strdup ("-H"));
+	}
 	g_ptr_array_add (array, g_strdup ("-P 0.5,0.5,0.8"));
 	g_ptr_array_add (array, g_strdup (basename));
 	argv = gcm_utils_ptr_array_to_strv (array);



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