[gnome-color-manager] Show the white point cross in white if the CIE chart is all black
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Show the white point cross in white if the CIE chart is all black
- Date: Thu, 3 Dec 2009 11:42:02 +0000 (UTC)
commit 6c77c29086ab851bec34c5667d0963bb32ec9217
Author: Richard Hughes <richard hughsie com>
Date: Thu Dec 3 11:41:21 2009 +0000
Show the white point cross in white if the CIE chart is all black
src/gcm-cie-widget.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-cie-widget.c b/src/gcm-cie-widget.c
index a993863..785b911 100644
--- a/src/gcm-cie-widget.c
+++ b/src/gcm-cie-widget.c
@@ -1043,7 +1043,12 @@ gcm_cie_widget_draw_white_point_cross (GcmCieWidget *cie, cairo_t *cr)
gap = size / 2.0f;
cairo_set_line_width (cr, 1.0f);
- cairo_set_source_rgb (cr, 0.0f, 0.0f, 0.0f);
+
+ /* choose color of cross */
+ if (priv->red_x < 0.001 && priv->green_x < 0.001 && priv->blue_x < 0.001)
+ cairo_set_source_rgb (cr, 1.0f, 1.0f, 1.0f);
+ else
+ cairo_set_source_rgb (cr, 0.0f, 0.0f, 0.0f);
gcm_cie_widget_offset_to_display (cie, priv->white_x, priv->white_y, &wx, &wy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]