From 44f91c9fc8befb67211949008121cb0eae6de562 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 28 May 2013 22:15:29 +0100 Subject: [PATCH] Ensure colour values around #888888 can be read in HTML output. --- utils/nsoption.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/nsoption.c b/utils/nsoption.c index d64adec72..41a4d5748 100644 --- a/utils/nsoption.c +++ b/utils/nsoption.c @@ -30,6 +30,7 @@ #include #include +#include "desktop/plot_style.h" #include "utils/errors.h" #include "utils/log.h" #include "utils/utils.h" @@ -324,7 +325,7 @@ nsoption_output_value_html(struct nsoption_s *option, "color: #%06x; " "font-family:Monospace; \">#%06X", rgbcolour, - (~rgbcolour) & 0xffffff, + colour_to_bw_furthest(rgbcolour), rgbcolour); break;