commit 249dbd6340d8c0a0c65c572331843f3a3792afb8
parent 174a04480ec5b1edc32e8136f86b47d3033ec0fd
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date: Fri, 19 May 2023 09:25:50 +0200
[nat] round underline down
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/x.c b/x.c
@@ -1626,7 +1626,7 @@ 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 * chscale + 1,
+ XftDrawRect(xw.draw, fg, winx, winy + ceilf(dc.font.ascent * chscale) + 1,
width, 1);
}