diff options
| author | Zacchary Dempsey-Plante <zacc@ztdp.ca> | 2022-03-13 10:44:08 +0100 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-13 10:45:34 +0100 |
| commit | 2aefa348baf4b702fdce98eb105bcba175d8283f (patch) | |
| tree | 936955ab6000eac01a889d9d2c55da96981e84c0 | |
| parent | Delay redrawals on palette changes (diff) | |
| download | st-2aefa348baf4b702fdce98eb105bcba175d8283f.tar.gz st-2aefa348baf4b702fdce98eb105bcba175d8283f.zip | |
make underlines and strikethroughs respect `chscale`
| -rw-r--r-- | x.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1493,12 +1493,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i | |||
| 1493 | 1493 | ||
| 1494 | /* Render underline and strikethrough. */ | 1494 | /* Render underline and strikethrough. */ |
| 1495 | if (base.mode & ATTR_UNDERLINE) { | 1495 | if (base.mode & ATTR_UNDERLINE) { |
| 1496 | XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, | 1496 | XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent * chscale + 1, |
| 1497 | width, 1); | 1497 | width, 1); |
| 1498 | } | 1498 | } |
| 1499 | 1499 | ||
| 1500 | if (base.mode & ATTR_STRUCK) { | 1500 | if (base.mode & ATTR_STRUCK) { |
| 1501 | XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent / 3, | 1501 | XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent * chscale / 3, |
| 1502 | width, 1); | 1502 | width, 1); |
| 1503 | } | 1503 | } |
| 1504 | 1504 | ||
