diff options
author | Zacchary Dempsey-Plante <zacc@ztdp.ca> | 2022-03-13 10:44:08 +0100 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2022-03-15 09:55:00 +0000 |
commit | 8f9014f522ddf220cdd5447b6f77b8d064253a4f (patch) | |
tree | 8bfb2e9b80cdc865e666b4e5872783a95b0d2a73 | |
parent | 0c0d707c4ce34b63b13bd32d21119953bd5fd651 (diff) |
make underlines and strikethroughs respect `chscale`
-rw-r--r-- | x.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1622,12 +1622,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); } |