From 4a805544063b2c59bf139e19d6961195c802a492 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 22 Feb 2011 15:53:12 +0000 Subject: Zero-pad colours in plain text output. svn path=/trunk/netsurf/; revision=11757 --- desktop/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/options.c') diff --git a/desktop/options.c b/desktop/options.c index 3ead9be11..225c23dfa 100644 --- a/desktop/options.c +++ b/desktop/options.c @@ -550,7 +550,7 @@ static size_t options_output_value_text(struct option_entry_s *option, rgbcolour = ((0x000000FF & *((colour *) option->p)) << 16) | ((0x0000FF00 & *((colour *) option->p)) << 0) | ((0x00FF0000 & *((colour *) option->p)) >> 16); - slen = snprintf(string + pos, size - pos, "%x", rgbcolour); + slen = snprintf(string + pos, size - pos, "%06x", rgbcolour); break; case OPTION_STRING: -- cgit v1.2.3