Ensure colour values around #888888 can be read in HTML output.

This commit is contained in:
Michael Drake 2013-05-28 22:15:29 +01:00
parent 4de556b6f5
commit 44f91c9fc8
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@
#include <stdlib.h>
#include <string.h>
#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</span>",
rgbcolour,
(~rgbcolour) & 0xffffff,
colour_to_bw_furthest(rgbcolour),
rgbcolour);
break;