wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 09d3389d951305301f4b91192345001943f18988
parent 8ed8e54507a5a49d15ffb76891334371726c0c3d
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Mon,  6 Feb 2006 18:49:47 +0100

small change in blitz


Diffstat:
liblitz/blitz.h | 1-
liblitz/draw.c | 12+-----------
2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/liblitz/blitz.h b/liblitz/blitz.h @@ -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 */ diff --git a/liblitz/draw.c b/liblitz/draw.c @@ -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); /*