]> Dogcows Code - chaz/openbox/commitdiff
take the bevel width into account for the width available
authorDana Jansens <danakj@orodu.net>
Fri, 20 Jun 2003 02:39:20 +0000 (02:39 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 20 Jun 2003 02:39:20 +0000 (02:39 +0000)
render/font.c

index 274743041a35322ed05b3b15414a68025b7cb32d..2360735443ee74c2d83a90c3a8519e0d08a822a6 100644 (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);
This page took 0.030014 seconds and 4 git commands to generate.