From c2a8363dd9868776c12bcdf172b7a02188621c90 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 24 Jun 2011 05:45:57 +0000 Subject: struct XftFont already has height which we can use directly instead of calculating ourselves, so do so. ok oga@ --- font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'font.c') diff --git a/font.c b/font.c index 47c7348..6ab2b51 100644 --- a/font.c +++ b/font.c @@ -45,7 +45,7 @@ font_descent(struct screen_ctx *sc) u_int font_height(struct screen_ctx *sc) { - return (sc->fontheight); + return (sc->font->height + 1); } void -- cgit 1.4.1