diff options
author | Zacchary Dempsey-Plante <zacc@ztdp.ca> | 2022-03-13 10:44:08 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-12 21:20:50 +0200 |
commit | cc55a688f096adaf959798517ba66eb9a3e40137 (patch) | |
tree | ab1c60cfe23d0f46b2eff6846cf0b69549cd69af | |
parent | ffae5e97d840cbe3f5be4904760739cad783af72 (diff) | |
download | st-cc55a688f096adaf959798517ba66eb9a3e40137.tar.gz |
make underlines and strikethroughs respect `chscale`
-rw-r--r-- | x.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1594,12 +1594,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); } |