From: Christoph Lohmann <20h@r-36.net> Date: Fri, 5 Oct 2012 07:38:10 +0000 (+0200) Subject: When the drawing behaviour was changed underline was not corrected. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=0b489c4a6a3da54fd6ce99e19520262a0e6a3cd1;p=st.git When the drawing behaviour was changed underline was not corrected. Thanks to Peter A. Shevtsov! --- 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); } }