1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 20:12:48 -05:00

Patch from Robert de Bath to ifdef out the Windows-specific hack for

the offset horizontal line characters in the VT100 line-drawing set
(o,p,r,s), so that no trace of it - and hence no pointless performance
hit - is compiled into the cross-platform modules on non-Windows
platforms.

[originally from svn r9467]
This commit is contained in:
Simon Tatham
2012-04-22 14:22:10 +00:00
parent bb1d656dd4
commit 3225f3743e
3 changed files with 5 additions and 0 deletions

View File

@ -5019,11 +5019,13 @@ static void do_paint(Terminal *term, Context ctx, int may_optimise)
break_run = ((tattr ^ attr) & term->attr_mask) != 0;
#ifdef USES_VTLINE_HACK
/* Special hack for VT100 Linedraw glyphs */
if ((tchar >= 0x23BA && tchar <= 0x23BD) ||
(j > 0 && (newline[j-1].chr >= 0x23BA &&
newline[j-1].chr <= 0x23BD)))
break_run = TRUE;
#endif
/*
* Separate out sequences of characters that have the