diff options
author | okan <okan> | 2011-06-24 05:45:57 +0000 |
---|---|---|
committer | okan <okan> | 2011-06-24 05:45:57 +0000 |
commit | c2a8363dd9868776c12bcdf172b7a02188621c90 (patch) | |
tree | a16d1496fdaa5cd2aed2c097c3e4a41980e8cd0b /font.c | |
parent | f6fcd0eb5d2f48b82f52b65fa343a83c74a8f55f (diff) | |
download | cwm-c2a8363dd9868776c12bcdf172b7a02188621c90.tar.gz cwm-c2a8363dd9868776c12bcdf172b7a02188621c90.tar.xz cwm-c2a8363dd9868776c12bcdf172b7a02188621c90.zip |
struct XftFont already has height which we can use directly instead of
calculating ourselves, so do so. ok oga@
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |