bettr font alignment, i think

This commit is contained in:
Dana Jansens 2003-03-25 22:00:14 +00:00
parent c8e55b8f09
commit 5755a7a564

View file

@ -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 */