From 1f94cf68e821c1e6e3850f540d098737baf9ba00 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 19 May 2013 23:16:29 +0000 Subject: move the rest of xft init into screen_conf, since most of it is based on config parameters. --- font.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'font.c') diff --git a/font.c b/font.c index eb61d06..de1f10f 100644 --- a/font.c +++ b/font.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: font.c,v 1.27 2013/05/19 23:09:59 okan Exp $ + * $OpenBSD: font.c,v 1.28 2013/05/19 23:16:29 okan Exp $ */ #include @@ -30,19 +30,6 @@ #include "calmwm.h" -void -font_init(struct screen_ctx *sc, const char *name) -{ - sc->xftdraw = XftDrawCreate(X_Dpy, sc->rootwin, - sc->visual, sc->colormap); - if (sc->xftdraw == NULL) - errx(1, "XftDrawCreate"); - - sc->xftfont = XftFontOpenName(X_Dpy, sc->which, name); - if (sc->xftfont == NULL) - errx(1, "XftFontOpenName"); -} - int font_width(XftFont *xftfont, const char *text, int len) { -- cgit v1.2.3-2-gb3c3