# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1186797985 0 # Node ID 701058c51d039d8fb4fce0eb220ccb6233029cf3 # Parent 33690fc4e17529efb3bd2b0beb3e64ce9d1e79b1 (x_draw_image_glyph_string): Adjust stipple origin when filling pixmap with stippled background. diff -r 33690fc4e175 -r 701058c51d03 src/xterm.c --- a/src/xterm.c Fri Aug 10 08:20:20 2007 +0000 +++ b/src/xterm.c Sat Aug 11 02:06:25 2007 +0000 @@ -2476,9 +2476,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 {