1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

When doing manual underlining, underline the text in question rather than a box

to the right of it. Probably introduced sometime around r9063.

[originally from svn r9217]
[r9063 == 00b32eda3c]
This commit is contained in:
Jacob Nevins
2011-07-15 16:03:06 +00:00
parent a1f3b7a358
commit 086764f5f4

View File

@ -3594,8 +3594,8 @@ void do_text_internal(Context ctx, int x, int y, wchar_t *text, int len,
dec = dec * 2 - font_height; dec = dec * 2 - font_height;
oldpen = SelectObject(hdc, CreatePen(PS_SOLID, 0, fg)); oldpen = SelectObject(hdc, CreatePen(PS_SOLID, 0, fg));
MoveToEx(hdc, x, y + dec, NULL); MoveToEx(hdc, line_box.left, line_box.top + dec, NULL);
LineTo(hdc, x + len * char_width, y + dec); LineTo(hdc, line_box.right, line_box.top + dec);
oldpen = SelectObject(hdc, oldpen); oldpen = SelectObject(hdc, oldpen);
DeleteObject(oldpen); DeleteObject(oldpen);
} }