tmake underlines and strikethroughs respect `chscale` - st - [fork] customized … | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 2aefa348baf4b702fdce98eb105bcba175d8283f | |
parent e823e2308f2a99023032a3966ebb7036a31d305f | |
Author: Zacchary Dempsey-Plante <[email protected]> | |
Date: Sun, 13 Mar 2022 10:44:08 +0100 | |
make underlines and strikethroughs respect `chscale` | |
Diffstat: | |
M x.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/x.c b/x.c | |
t@@ -1493,12 +1493,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Gly… | |
/* Render underline and strikethrough. */ | |
if (base.mode & ATTR_UNDERLINE) { | |
- XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, | |
+ XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent * chscale… | |
width, 1); | |
} | |
if (base.mode & ATTR_STRUCK) { | |
- XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent / 3, | |
+ XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent * chs… | |
width, 1); | |
} | |