commit 77a1522f17d56d58953e3d44841ebee8c0db457a
parent 4960e9e912ff3e852026f99718a7e24ebcf9bbce
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);
}