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@ --- conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 62943a6..c04dd0d 100644 --- a/conf.c +++ b/conf.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: conf.c,v 1.81 2011/06/24 05:40:09 okan Exp $ + * $OpenBSD: conf.c,v 1.82 2011/06/24 05:45:57 okan Exp $ */ #include @@ -70,7 +70,6 @@ void conf_font(struct conf *c, struct screen_ctx *sc) { sc->font = font_make(sc, c->DefaultFontName); - sc->fontheight = font_ascent(sc) + font_descent(sc) + 1; } void -- cgit v1.2.3-2-gb3c3