Browse Source

* Fix IRC and term transparency (again).

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
142a830571
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      cucul/export.c

+ 4
- 4
cucul/export.c View File

@@ -230,9 +230,9 @@ static int export_utf8(cucul_canvas_t *cv, cucul_buffer_t *ex)
if(ch == CUCUL_MAGIC_FULLWIDTH)
continue;

fg = (((attr >> 4) & 0x7ffe) == (CUCUL_DEFAULT << 4)) ?
fg = (((attr >> 4) & 0x3fff) == CUCUL_DEFAULT) ?
0x10 : palette[_cucul_attr_to_ansi4fg(attr)];
bg = (((attr >> 18) & 0x7ffe) == (CUCUL_TRANSPARENT << 4)) ?
bg = (((attr >> 18) & 0x3fff) == CUCUL_TRANSPARENT) ?
0x10 : palette[_cucul_attr_to_ansi4bg(attr)];

/* TODO: the [0 could be omitted in some cases */
@@ -537,10 +537,10 @@ static int export_irc(cucul_canvas_t *cv, cucul_buffer_t *ex)
if(ch == CUCUL_MAGIC_FULLWIDTH)
continue;

if(((attr >> 4) & 0x7ffe) == (CUCUL_DEFAULT << 4))
if(((attr >> 4) & 0x3fff) == CUCUL_DEFAULT)
fg = 0x10;

if(((attr >> 18) & 0x7ffe) == (CUCUL_TRANSPARENT << 4))
if(((attr >> 18) & 0x3fff) == CUCUL_TRANSPARENT)
bg = 0x10;

/* TODO: optimise series of same fg / same bg


Loading…
Cancel
Save