aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2016-09-28 17:06:33 +0000
committerokan2016-09-28 17:06:33 +0000
commit5f5374eb8ec00ff4d793c6a037f20dd2a1a91cd8 (patch)
treea3261d97c4414a79393f28fe3dd9ccc42d39263b /xutil.c
parenta9e8c34755d6c0e05cb0a204f06480cfbd353994 (diff)
downloadcwm-5f5374eb8ec00ff4d793c6a037f20dd2a1a91cd8.tar.gz
Inline Xft draw and extents wrappers; too much abstraction.
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/xutil.c b/xutil.c
index 1a0c5d5..3e7e99e 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.104 2016/09/16 14:32:02 okan Exp $
+ * $OpenBSD: xutil.c,v 1.105 2016/09/28 17:06:33 okan Exp $
*/
#include <sys/types.h>
@@ -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));
-}