take the bevel width into account for the width available

This commit is contained in:
Dana Jansens 2003-06-20 02:39:20 +00:00
parent f90ee94d6b
commit 62240d2b0f

View file

@ -115,7 +115,7 @@ void font_draw(XftDraw *d, TextureText *t, Rect *area)
/* center vertically */
y = area->y +
(area->height - font_height(t->font, t->shadow, t->offset)) / 2;
w = area->width;
w = area->width - theme-bevel * 2;
h = area->height;
text = g_string_new(t->string);