From 8252e709fbeb1b992e1c738536abbda5974492c4 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 13 Oct 2002 09:57:07 +0000 Subject: [PATCH] Fix underline, which I cleverly broke while adding support for the window border. Oops. git-svn-id: svn://svn.tartarus.org/sgt/putty@2032 cda61777-01e9-0310-a592-d414129be87e --- unix/pterm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/pterm.c b/unix/pterm.c index 5cd187c0..f3060895 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -823,7 +823,8 @@ void do_text(Context ctx, int x, int y, char *text, int len, uheight = inst->font_height - 1; gdk_draw_line(inst->pixmap, gc, x*inst->font_width+cfg.window_border, y*inst->font_height + uheight + cfg.window_border, - (x+len)*inst->font_width-1, y*inst->font_height+uheight); + (x+len)*inst->font_width-1+cfg.window_border, + y*inst->font_height + uheight + cfg.window_border); } gdk_draw_pixmap(inst->area->window, gc, inst->pixmap, -- 2.11.0