[gnome-color-manager] trivial: we write the grayscale patches in the IT8 file backwards
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: we write the grayscale patches in the IT8 file backwards
- Date: Wed, 13 Oct 2010 14:30:58 +0000 (UTC)
commit 3b8fbb7f34b7312605f9fed1d90299c62e184f28
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 13 16:30:42 2010 +0100
trivial: we write the grayscale patches in the IT8 file backwards
src/gcm-calibrate-native.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/gcm-calibrate-native.c b/src/gcm-calibrate-native.c
index eda5389..62e66eb 100644
--- a/src/gcm-calibrate-native.c
+++ b/src/gcm-calibrate-native.c
@@ -222,26 +222,26 @@ gcm_calibrate_native_create_it8_file (GcmCalibrateNative *calibrate_native, GcmS
g_free (patch_name);
}
- /* white */
- source.R = 1.0;
- source.G = 1.0;
- source.B = 1.0;
+ /* black */
+ source.R = 0.0;
+ source.G = 0.0;
+ source.B = 0.0;
gcm_calibrate_native_sample_add (array, "DMIN", &source);
/* grey ramp */
- for (i=1; i<precision; i++) {
+ for (i=0; i<precision; i++) {
patch_name = g_strdup_printf ("GS%i", i+1);
- source.R = 1.0f - (divisions * i);
- source.G = 1.0f - (divisions * i);
- source.B = 1.0f - (divisions * i);
+ source.R = divisions * i;
+ source.G = divisions * i;
+ source.B = divisions * i;
gcm_calibrate_native_sample_add (array, patch_name, &source);
g_free (patch_name);
}
- /* black */
- source.R = 0.0;
- source.G = 0.0;
- source.B = 0.0;
+ /* white */
+ source.R = 1.0;
+ source.G = 1.0;
+ source.B = 1.0;
gcm_calibrate_native_sample_add (array, "DMAX", &source);
/* measure */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]