boxdraw: fix for rendering errors following commit f8e451e ref. #180

This commit is contained in:
Bakkeby 2025-07-08 10:27:50 +02:00 committed by Antoine Vaure
parent 821244c2ae
commit 4da3d6d87c

7
x.c
View file

@ -2309,13 +2309,14 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
r.width = width; r.width = width;
XftDrawSetClipRectangles(xw.draw, winx, winy, &r, 1); XftDrawSetClipRectangles(xw.draw, winx, winy, &r, 1);
#endif // WIDE_GLYPHS_PATCH #endif // WIDE_GLYPHS_PATCH
#if BOXDRAW_PATCH
}
#endif // BOXDRAW_PATCH
/* Render the glyphs. */ /* Render the glyphs. */
XftDrawGlyphFontSpec(xw.draw, fg, specs, len); XftDrawGlyphFontSpec(xw.draw, fg, specs, len);
#if BOXDRAW_PATCH
}
#endif // BOXDRAW_PATCH
/* Render underline and strikethrough. */ /* Render underline and strikethrough. */
if (base.mode & ATTR_UNDERLINE) { if (base.mode & ATTR_UNDERLINE) {
#if UNDERCURL_PATCH #if UNDERCURL_PATCH