aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZacchary Dempsey-Plante <zacc@ztdp.ca>2022-03-13 10:44:08 +0100
committersinanmohd <pcmsinan@gmail.com>2023-01-12 08:21:56 +0530
commitfb35e763cce79fefad915f44024781ac87ce4f85 (patch)
treedf894b5ece769eac412c3a81d8e4e77933b2b96d
parentae4f71321e0790d7adffbaf371dea75f5c4890d2 (diff)
make underlines and strikethroughs respect `chscale`
-rw-r--r--x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x.c b/x.c
index 72793f7..5e52cb4 100644
--- a/x.c
+++ b/x.c
@@ -1627,12 +1627,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
/* 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 + 1,
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 * chscale / 3,
width, 1);
}