aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-10-05 09:38:10 +0200
committerChristoph Lohmann <20h@r-36.net>2012-10-05 09:38:10 +0200
commit0b489c4a6a3da54fd6ce99e19520262a0e6a3cd1 (patch)
tree2191e7cf6456006e6d80dd08e2486bd51e9e6ff1
parent2752018e27420947a034d50f1ce165bbb76ae1a8 (diff)
When the drawing behaviour was changed underline was not corrected.
Thanks to Peter A. Shevtsov!
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}