summaryrefslogtreecommitdiff
path: root/app/cwm/font.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2009-12-15 03:26:23 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2009-12-15 03:26:23 +0000
commit9db6a7a6691f36cf5f6c80367a9cd722d1a079eb (patch)
tree2f457491d55bf1f6fd45b755a4e1f572cd72151b /app/cwm/font.c
parent1b11422faef74f90665805871ed0524f6b5ba398 (diff)
rid ourselves of these functional macros; convert to real functions.
ok oga@
Diffstat (limited to 'app/cwm/font.c')
-rw-r--r--app/cwm/font.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/cwm/font.c b/app/cwm/font.c
index 8e1476e59..90ffe2428 100644
--- a/app/cwm/font.c
+++ b/app/cwm/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)
{