1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Improve support for non-colour displays by adding a mask of attributes to

ignore when breaking text into runs for display, and implement setting this
on Mac (other ports just use 0xffffffff).

We don't use DeviceLoop for this any more because Apple Technical Q&A
QA1024 says we shouldn't.  Unlike their example, we don't depend on the
Display Manager's being present either.

[originally from svn r2264]
This commit is contained in:
Ben Harris
2002-11-29 00:32:03 +00:00
parent 26f8c13f7b
commit 12081087e7
4 changed files with 34 additions and 34 deletions

View File

@ -336,6 +336,7 @@ Terminal *term_init(Config *mycfg, void *frontend)
term->nbeeps = 0;
term->lastbeep = FALSE;
term->beep_overloaded = FALSE;
term->attr_mask = 0xffffffff;
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;
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