projects
/
suckless
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e823e23
)
make underlines and strikethroughs respect `chscale`
author
Zacchary Dempsey-Plante
<zacc@ztdp.ca>
Sun, 13 Mar 2022 09:44:08 +0000
(10:44 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 13 Mar 2022 09:45:34 +0000
(10:45 +0100)
x.c
patch
|
blob
|
history
diff --git
a/x.c
b/x.c
index cd96575be257240b094888f9ca2bbdaaa0e3792a..2a3bd384c46560d5a1067c065efee4a3dc206f4b 100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-1493,12
+1493,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);
}