When the drawing behaviour was changed underline was not corrected.

Thanks to Peter A. Shevtsov!
dev
Christoph Lohmann 2012-10-05 09:38:10 +02:00
parent 2752018e27
commit 0b489c4a6a
1 changed files with 1 additions and 1 deletions

2
st.c
View File

@ -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);
}
}