Good catch, I'll apply it
On Fri, Jan 03, 2014 at 03:24:24PM +0100, Amadeusz Sławiński wrote:
> for example
> echo -e "\e[48;2;255;0;0m\e[38;2;0;0;255m test "
> should render on red bg with blue fg
>
> also now elinks works correctly when using 'truecolor' option
> in preferences
>
> Signed-off-by: Amadeusz Sławiński <amade_AT_asmblr.net>
> ---
> st.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/st.c b/st.c
> index 4fb3311..a45611c 100644
> --- a/st.c
> +++ b/st.c
> _AT_@ -3073,6 +3073,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
> base.fg = defaultunderline;
> }
> if(IS_TRUECOL(base.fg)) {
> + colfg.alpha = 0xffff;
> colfg.red = TRUERED(base.fg);
> colfg.green = TRUEGREEN(base.fg);
> colfg.blue = TRUEBLUE(base.fg);
> _AT_@ -3083,6 +3084,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
> }
>
> if(IS_TRUECOL(base.bg)) {
> + colbg.alpha = 0xffff;
> colbg.green = TRUEGREEN(base.bg);
> colbg.red = TRUERED(base.bg);
> colbg.blue = TRUEBLUE(base.bg);
> --
> 1.8.5.2
>
--
Roberto E. Vargas Caballero
Received on Fri Jan 03 2014 - 15:26:07 CET