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 | c1ef12591b95be0a1d8d93b0cf746eb23db14bb9 (patch) | |
tree | 2191e7cf6456006e6d80dd08e2486bd51e9e6ff1 | |
parent | 639104946a2f7247a6c94cd7beaaf7487f287cb6 (diff) | |
download | st-c1ef12591b95be0a1d8d93b0cf746eb23db14bb9.tar.gz st-c1ef12591b95be0a1d8d93b0cf746eb23db14bb9.tar.bz2 |
When the drawing behaviour was changed underline was not corrected.
Thanks to Peter A. Shevtsov!
-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) { 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); } } |