mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-13 14:29:20 +03:00
Fix colour component combination for plain text output too.
svn path=/trunk/netsurf/; revision=11738
This commit is contained in:
parent
f8c5eeb70a
commit
c95460da05
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user