rid ourselves of these functional macros; convert to real functions.

ok oga@
This commit is contained in:
okan
2009-12-15 03:26:22 +00:00
parent 597cb25820
commit 2ad2b5f31d
2 changed files with 21 additions and 4 deletions

18
font.c
View File

@@ -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)
{