From 26b9f3de0ffe471e5335b07454147457e373c037 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Wed, 30 Jun 2010 01:36:15 +0100 Subject: libdraw now has own repo --- draw/textnw.c | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 draw/textnw.c (limited to 'draw/textnw.c') diff --git a/draw/textnw.c b/draw/textnw.c deleted file mode 100644 index 9c0c122..0000000 --- a/draw/textnw.c +++ /dev/null @@ -1,14 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include "draw.h" - -int -textnw(DC *dc, const char *text, unsigned int len) { - XRectangle r; - - if(dc->font.set) { - XmbTextExtents(dc->font.set, text, len, NULL, &r); - return r.width; - } - return XTextWidth(dc->font.xfont, text, len); -} -- cgit v1.2.3-13-gbd6f