[teklib-general] changeset in /hg/teklib/current: drawtext with opaque background...

Timm S. Mueller tmueller at neoscientists.org
Mon Nov 26 16:24:41 CET 2007


changeset 719b1662ed4e in /hg/teklib/current
details: http://teklib.org:8001/hg/teklib/current?cmd=changeset;node=719b1662ed4e
description:
	drawtext with opaque background fixed

diffs (16 lines):

diff -r 4d4b9408363b -r 719b1662ed4e src/display_x11/display_x11_api.c
--- a/src/display_x11/display_x11_api.c	Wed Sep 26 01:01:03 2007 +0200
+++ b/src/display_x11/display_x11_api.c	Wed Sep 26 01:03:14 2007 +0200
@@ -583,10 +583,10 @@ x11_drawtext(TMOD_X11 *mod, struct TVReq
 			XftFont *f = ((struct FontNode *) v->curfont)->xftfont;
 			TINT w = x11_hosttextsize(mod, v->curfont, text);
 
-			(*g->xftiface.XftDrawRect)(v->draw, &bgpen->xftcolor,
+			(*mod->x11_xftiface.XftDrawRect)(v->draw, &bgpen->xftcolor,
 							x-1, y, w+2, f->ascent + f->descent);
 
-			(*g->xftiface.XftDrawStringUtf8)(v->draw, &fgpen->xftcolor,
+			(*mod->x11_xftiface.XftDrawStringUtf8)(v->draw, &fgpen->xftcolor,
 				f, x, y + f->ascent, (FcChar8 *)text, len);
 		}
 		else


More information about the teklib-general mailing list