Fix colour component combination for plain text output too.

svn path=/trunk/netsurf/; revision=11738
This commit is contained in:
Michael Drake 2011-02-20 22:30:53 +00:00
parent f8c5eeb70a
commit c95460da05

View File

@ -561,11 +561,11 @@ int snoptionf(char *string, size_t size, unsigned int option, const char *fmt)
break;
case OPTION_COLOUR:
rgbcolour = ((0x000000FF | *((colour *)
option_entry->p)) << 16) &
((0x0000FF00 | *((colour *)
option_entry->p)) << 0) &
((0x00FF0000 | *((colour *)
rgbcolour = ((0x000000FF & *((colour *)
option_entry->p)) << 16) |
((0x0000FF00 & *((colour *)
option_entry->p)) << 0) |
((0x00FF0000 & *((colour *)
option_entry->p)) >> 16);
slen += snprintf(string + slen, size - slen, "%x", rgbcolour);
break;