diff options
author | okan <okan> | 2016-09-28 17:06:33 +0000 |
---|---|---|
committer | okan <okan> | 2016-09-28 17:06:33 +0000 |
commit | 92b81d3df5d28e86e849a414eb9bc6cebe0c5f3f (patch) | |
tree | f8c45854c2b8b6666100b6aa602c80d582f0796a /xutil.c | |
parent | b32989d3793bf0247cd517bf232799f12b5652ab (diff) | |
download | cwm-92b81d3df5d28e86e849a414eb9bc6cebe0c5f3f.tar.gz cwm-92b81d3df5d28e86e849a414eb9bc6cebe0c5f3f.tar.xz cwm-92b81d3df5d28e86e849a414eb9bc6cebe0c5f3f.zip |
Inline Xft draw and extents wrappers; too much abstraction.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/xutil.c b/xutil.c index eaaa0a4..39639ef 100644 --- a/xutil.c +++ b/xutil.c @@ -531,21 +531,3 @@ xu_xorcolor(XftColor a, XftColor b, XftColor *r) r->color.blue = a.color.blue ^ b.color.blue; r->color.alpha = 0xffff; } - -int -xu_xft_width(XftFont *xftfont, const char *text, int len) -{ - XGlyphInfo extents; - - XftTextExtentsUtf8(X_Dpy, xftfont, (const FcChar8*)text, - len, &extents); - - return(extents.xOff); -} - -void -xu_xft_draw(struct screen_ctx *sc, const char *text, int color, int x, int y) -{ - XftDrawStringUtf8(sc->xftdraw, &sc->xftcolor[color], sc->xftfont, - x, y, (const FcChar8*)text, strlen(text)); -} |