diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-05 09:38:10 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-05 09:38:10 +0200 |
commit | 0b489c4a6a3da54fd6ce99e19520262a0e6a3cd1 (patch) | |
tree | 2191e7cf6456006e6d80dd08e2486bd51e9e6ff1 /st.c | |
parent | 2752018e27420947a034d50f1ce165bbb76ae1a8 (diff) | |
download | st-0b489c4a6a3da54fd6ce99e19520262a0e6a3cd1.tar.gz st-0b489c4a6a3da54fd6ce99e19520262a0e6a3cd1.zip |
When the drawing behaviour was changed underline was not corrected.
Thanks to Peter A. Shevtsov!
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2234,7 +2234,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { | |||
2234 | winy + font->ascent, (FcChar8 *)s, bytelen); | 2234 | winy + font->ascent, (FcChar8 *)s, bytelen); |
2235 | 2235 | ||
2236 | if(base.mode & ATTR_UNDERLINE) { | 2236 | if(base.mode & ATTR_UNDERLINE) { |
2237 | XftDrawRect(xw.xft_draw, fg, winx, winy+1, | 2237 | XftDrawRect(xw.xft_draw, fg, winx, winy + font->ascent + 1, |
2238 | width, 1); | 2238 | width, 1); |
2239 | } | 2239 | } |
2240 | } | 2240 | } |