Fix underline, which I cleverly broke while adding support for the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 13 Oct 2002 09:57:07 +0000 (09:57 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 13 Oct 2002 09:57:07 +0000 (09:57 +0000)
window border. Oops.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2032 cda61777-01e9-0310-a592-d414129be87e

unix/pterm.c

index 5cd187c..f306089 100644 (file)
@@ -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,