[hackers] wmii: new tip (= 1767)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Wed, 07 Feb 2007 07:30:04 +0100

changeset: 1767:0e965bd65c45
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed Feb 07 01:23:20 2007 -0500
files: draw.c
description:
Fixed text centering again.

diff -r 83d59a0e2c05 -r 0e965bd65c45 draw.c
--- a/draw.c Wed Feb 07 06:23:47 2007 +0100
+++ b/draw.c Wed Feb 07 01:23:20 2007 -0500
@@ -11,7 +11,7 @@ textwidth_l(BlitzFont *font, char *text,
         if(font->set) {
                 XRectangle r;
                 XmbTextExtents(font->set, text, len, &r, nil);
- return r.width - 1;
+ return r.width;
         }
         return XTextWidth(font->xfont, text, len);
 }
Received on Wed Feb 07 2007 - 07:30:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:57 UTC