struct XftFont already has height which we can use directly instead of

calculating ourselves, so do so.

ok oga@
This commit is contained in:
okan
2011-06-24 05:45:57 +00:00
parent f6fcd0eb5d
commit c2a8363dd9
4 changed files with 4 additions and 7 deletions

2
font.c
View File

@@ -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