version 1.64, 2009/11/04 13:34:26 |
version 1.65, 2009/11/04 15:59:27 |
|
|
/* If the character is space, don't care about foreground. */ |
/* If the character is space, don't care about foreground. */ |
if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) { |
if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) { |
memcpy(&gc2, gc, sizeof gc2); |
memcpy(&gc2, gc, sizeof gc2); |
|
|
if (gc->attr & GRID_ATTR_REVERSE) |
if (gc->attr & GRID_ATTR_REVERSE) |
gc2.bg = tc->bg; |
gc2.bg = tc->bg; |
else |
else |
gc2.fg = tc->fg; |
gc2.fg = tc->fg; |
gc2.attr = tc->attr & ~GRID_ATTR_REVERSE; |
|
gc2.attr |= gc->attr & GRID_ATTR_REVERSE; |
|
|
|
gc = &gc2; |
gc = &gc2; |
} |
} |
|
|