mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix display of VT100 vertically-offset horizontal line characters
(o,p,r,s). They are displayed in Windows by actually writing the centred one (q) with a vertical offset, in case fonts don't have the offset versions; this requires terminal.c to separate those characters into distinct calls to do_text(). Unfortunately, it was only breaking up a text-drawing call _before_ one of those characters, not after one. Spotted by Robert de Bath. [originally from svn r9221]
This commit is contained in:
parent
a474a598b5
commit
4fd112e15d
@ -5016,7 +5016,9 @@ static void do_paint(Terminal *term, Context ctx, int may_optimise)
|
||||
break_run = ((tattr ^ attr) & term->attr_mask) != 0;
|
||||
|
||||
/* Special hack for VT100 Linedraw glyphs */
|
||||
if (tchar >= 0x23BA && tchar <= 0x23BD)
|
||||
if ((tchar >= 0x23BA && tchar <= 0x23BD) ||
|
||||
(j > 0 && (newline[j-1].chr >= 0x23BA &&
|
||||
newline[j-1].chr <= 0x23BD)))
|
||||
break_run = TRUE;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user