From 0b489c4a6a3da54fd6ce99e19520262a0e6a3cd1 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Fri, 5 Oct 2012 09:38:10 +0200 Subject: When the drawing behaviour was changed underline was not corrected. Thanks to Peter A. Shevtsov! --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st.c b/st.c index b4dc591..df166b7 100644 --- a/st.c +++ b/st.c @@ -2234,7 +2234,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { winy + font->ascent, (FcChar8 *)s, bytelen); if(base.mode & ATTR_UNDERLINE) { - XftDrawRect(xw.xft_draw, fg, winx, winy+1, + XftDrawRect(xw.xft_draw, fg, winx, winy + font->ascent + 1, width, 1); } } -- cgit v1.2.3-13-gbd6f