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 /font.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 '')
-rw-r--r-- | font.c | 4 |
1 files changed, 2 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: 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 <sys/param.h> @@ -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 |