X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4a693cfc5c3ee0e639bbee0215345e921715ab04..ebe8092cc3f471e782af299699284e9142f11696:/windows/window.c diff --git a/windows/window.c b/windows/window.c index 908c1f68..da0d3d48 100644 --- a/windows/window.c +++ b/windows/window.c @@ -3594,8 +3594,8 @@ void do_text_internal(Context ctx, int x, int y, wchar_t *text, int len, dec = dec * 2 - font_height; oldpen = SelectObject(hdc, CreatePen(PS_SOLID, 0, fg)); - MoveToEx(hdc, x, y + dec, NULL); - LineTo(hdc, x + len * char_width, y + dec); + MoveToEx(hdc, line_box.left, line_box.top + dec, NULL); + LineTo(hdc, line_box.right, line_box.top + dec); oldpen = SelectObject(hdc, oldpen); DeleteObject(oldpen); }