# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1186797887 0 # Node ID 06b928ed4503f9fca11861f4115d7c9e7450d799 # Parent 170a50c66d9b894032d8da8c71768ddc11431e32 (x_draw_image_glyph_string): Adjust stipple origin when filling pixmap with stippled background. diff -r 170a50c66d9b -r 06b928ed4503 src/xterm.c --- a/src/xterm.c Fri Aug 10 10:13:44 2007 +0000 +++ b/src/xterm.c Sat Aug 11 02:04:47 2007 +0000 @@ -2525,9 +2525,11 @@ { /* Fill background with a stipple pattern. */ XSetFillStyle (s->display, s->gc, FillOpaqueStippled); + XSetTSOrigin (s->display, s->gc, - s->x, - s->y); XFillRectangle (s->display, pixmap, s->gc, 0, 0, s->background_width, s->height); XSetFillStyle (s->display, s->gc, FillSolid); + XSetTSOrigin (s->display, s->gc, 0, 0); } else {