]> git.mdlowis.com Git - projs/tide.git/commitdiff
use new glyph drawing api
authorMichael D. Lowis <mike@mdlowis.com>
Mon, 17 Dec 2018 03:59:53 +0000 (22:59 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Mon, 17 Dec 2018 03:59:53 +0000 (22:59 -0500)
src/lib/x11.c

index 0d3bdffd9afb6d16fb4ecdd881ca2f0b5472e590..f9cc3b0d8516beedd8ca55179ad50b3a62cdf8e2 100644 (file)
@@ -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;
 }