From 4e721214bf3a9c650d580887734791d0378bc40b Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 16 Dec 2018 22:59:53 -0500 Subject: [PATCH] use new glyph drawing api --- src/lib/x11.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/x11.c b/src/lib/x11.c index 0d3bdff..f9cc3b0 100644 --- a/src/lib/x11.c +++ b/src/lib/x11.c @@ -257,10 +257,7 @@ static void draw_view(View* view, XftFont* font, size_t nrows, drawcsr* csr, int specs[i].y = y + font->ascent; x += row->cols[i].width; } - XftColor fgc; - xftcolor(&X, &fgc, Palette[fg]); - XftDrawGlyphSpec(X.xft, &fgc, font, specs, row->len); - XftColorFree(X.display, X.visual, X.colormap, &fgc); + x11_draw_glyphs(&X, Palette[fg], font, specs, row->len); } csr->y += (nrows * fheight) + 3; } -- 2.52.0