1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-25 00:28:45 -05:00

Merge r9217 (Jacob's underlining fix).

[originally from svn r9223]
[r9217 == 086764f5f4d0a50a87edfa1cff18b26edf36c94a]
This commit is contained in:
Simon Tatham 2011-07-16 11:26:19 +00:00
parent 7aba365ca9
commit 2bb89cd221

View File

@ -3521,8 +3521,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);
} }