commit 72776133fa661b462c9a5dd3dbcda4dbe8d7e79b
parent 6e995c6f6fec9a78b75e608d73d4d34b3cf05d0b
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);
}