projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove a stray prototype for mac_set_attr_mask().
[u/mdw/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
06d6ee6
..
5950072
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-336,6
+336,7
@@
Terminal *term_init(Config *mycfg, void *frontend)
term->nbeeps = 0;
term->lastbeep = FALSE;
term->beep_overloaded = FALSE;
term->nbeeps = 0;
term->lastbeep = FALSE;
term->beep_overloaded = FALSE;
+ term->attr_mask = 0xffffffff;
term->resize_fn = NULL;
term->resize_ctx = NULL;
term->resize_fn = NULL;
term->resize_ctx = NULL;
@@
-3039,7
+3040,8
@@
static void do_paint(Terminal *term, Context ctx, int may_optimise)
if ((term->disptext[idx] ^ tattr) & ATTR_WIDE)
dirty_line = TRUE;
if ((term->disptext[idx] ^ tattr) & ATTR_WIDE)
dirty_line = TRUE;
- break_run = (tattr != attr || j - start >= sizeof(ch));
+ break_run = (((tattr ^ attr) & term->attr_mask) ||
+ j - start >= sizeof(ch));
/* Special hack for VT100 Linedraw glyphs */
if ((attr & CSET_MASK) == 0x2300 && tchar >= 0xBA
/* Special hack for VT100 Linedraw glyphs */
if ((attr & CSET_MASK) == 0x2300 && tchar >= 0xBA