From: simon Date: Sun, 13 Oct 2002 09:57:07 +0000 (+0000) Subject: Fix underline, which I cleverly broke while adding support for the X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/8252e709fbeb1b992e1c738536abbda5974492c4?hp=6a5e84ddac48f42ba4145e084eba8bd5f9a46970 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 --- 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,