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