From 862a1793f0990088013563e197c67fe962ed8006 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 15 Dec 2009 03:26:22 +0000 Subject: rid ourselves of these functional macros; convert to real functions. ok oga@ --- font.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'font.c') diff --git a/font.c b/font.c index 8e1476e..90ffe24 100644 --- a/font.c +++ b/font.c @@ -18,6 +18,24 @@ #include "calmwm.h" +int +font_ascent(struct screen_ctx *sc) +{ + return (sc->font->ascent); +} + +int +font_descent(struct screen_ctx *sc) +{ + return (sc->font->descent); +} + +u_int +font_height(struct screen_ctx *sc) +{ + return (sc->fontheight); +} + void font_init(struct screen_ctx *sc) { -- cgit v1.2.3-2-gb3c3