aboutsummaryrefslogtreecommitdiffstats
path: root/font.c
diff options
context:
space:
mode:
authorokan2009-12-15 03:26:22 +0000
committerokan2009-12-15 03:26:22 +0000
commit862a1793f0990088013563e197c67fe962ed8006 (patch)
treeb226af3e2782aab84f0c9add2bff94592a5100ce /font.c
parent9082be335d81f4e580013286bf4c35241ef89279 (diff)
downloadcwm-862a1793f0990088013563e197c67fe962ed8006.tar.gz
rid ourselves of these functional macros; convert to real functions.
ok oga@
Diffstat (limited to '')
-rw-r--r--font.c18
1 files changed, 18 insertions, 0 deletions
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)
{