small change in blitz

This commit is contained in:
Anselm R. Garbe 2006-02-06 18:49:47 +01:00
parent 8ed8e54507
commit 09d3389d95
2 changed files with 1 additions and 12 deletions

View File

@ -25,7 +25,6 @@ typedef struct {
Drawable drawable;
GC gc;
Color color;
Align align;
XFontStruct *font;
XRectangle rect; /* relative rect */
XRectangle *notch; /* relative notch rect */

View File

@ -125,17 +125,7 @@ draw_text(Display * dpy, Draw * d)
if (len > 1)
text[len - 1] = '.';
}
switch (d->align) {
case WEST:
x = d->rect.x + h / 2;
break;
case EAST:
x = d->rect.x + d->rect.width - (h / 2 + w);
break;
default: /* CENTER */
x = d->rect.x + (d->rect.width - w) / 2;
break;
}
x = d->rect.x + h / 2;
XSetBackground(dpy, d->gc, d->color.bg);
/*