diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-25 22:00:14 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-25 22:00:14 +0000 |
| commit | 5755a7a5642ba3b84163a213d79ac021a09b060f (patch) | |
| tree | 852169442e8b1bbed12c80e2b79a2817332da8c2 /render/font.c | |
| parent | c8e55b8f09e8f216cfb93295eaefc1793f175aca (diff) | |
bettr font alignment, i think
Diffstat (limited to 'render/font.c')
| -rw-r--r-- | render/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/font.c b/render/font.c index 4436cf84..d783d9d6 100644 --- a/render/font.c +++ b/render/font.c @@ -97,7 +97,7 @@ void font_draw(XftDraw *d, TextureText *t, int x, int y, int w, int h) /* accomidate for areas bigger/smaller than Xft thinks the font is tall */ y -= (2 * (t->font->xftfont->ascent + t->font->xftfont->descent) - - (t->font->height + h)) / 2; + (t->font->height + h) - 1) / 2; x += 3; /* XXX figure out X with justification */ |
