From 2de7aba86f0a58b402764864d7de4af200682895 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'font.c') diff --git a/font.c b/font.c index 63d315b..20075f9 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.14 2011/05/11 13:53:51 okan Exp $ + * $OpenBSD: font.c,v 1.15 2011/06/24 05:45:57 okan Exp $ */ #include @@ -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 v1.2.3-2-gb3c3