Zero-pad colours in plain text output.

svn path=/trunk/netsurf/; revision=11757
This commit is contained in:
Michael Drake 2011-02-22 15:53:12 +00:00
parent 7eaa663d74
commit 4a80554406

View File

@ -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: