mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
nsoption: Use colour_rb_swap macro.
This commit is contained in:
parent
30b9c088b0
commit
2da993756c
@ -383,9 +383,7 @@ nsoption_output_value_html(struct nsoption_s *option,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OPTION_COLOUR:
|
case OPTION_COLOUR:
|
||||||
rgbcolour = (((0x000000FF & option->value.c) << 16) |
|
rgbcolour = colour_rb_swap(option->value.c);
|
||||||
((0x0000FF00 & option->value.c) << 0) |
|
|
||||||
((0x00FF0000 & option->value.c) >> 16));
|
|
||||||
slen = snprintf(string + pos,
|
slen = snprintf(string + pos,
|
||||||
size - pos,
|
size - pos,
|
||||||
"<span style=\"background-color: #%06x; "
|
"<span style=\"background-color: #%06x; "
|
||||||
|
Loading…
Reference in New Issue
Block a user