[teklib-general] changeset in /hg/teklib/current: x11_drawtext tuning
Franciska Schulze
fschulze at neoscientists.org
Mon Nov 26 16:24:42 CET 2007
changeset d25995c7c717 in /hg/teklib/current
details: http://teklib.org:8001/hg/teklib/current?cmd=changeset;node=d25995c7c717
description:
x11_drawtext tuning
diffs (12 lines):
diff -r 97e4f4a370e0 -r d25995c7c717 src/display_x11/display_x11_api.c
--- a/src/display_x11/display_x11_api.c Wed Sep 26 01:25:35 2007 +0200
+++ b/src/display_x11/display_x11_api.c Wed Sep 26 18:06:59 2007 +0200
@@ -584,7 +584,7 @@ x11_drawtext(TMOD_X11 *mod, struct TVReq
TINT w = x11_hosttextsize(mod, v->curfont, text);
(*mod->x11_xftiface.XftDrawRect)(v->draw, &bgpen->xftcolor,
- x-1, y, w+2, f->ascent + f->descent);
+ x-1, y-1, w+2, f->height+2);
(*mod->x11_xftiface.XftDrawStringUtf8)(v->draw, &fgpen->xftcolor,
f, x, y + f->ascent, (FcChar8 *)text, len);
More information about the teklib-general
mailing list