changeset 78526:701058c51d03

(x_draw_image_glyph_string): Adjust stipple origin when filling pixmap with stippled background.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sat, 11 Aug 2007 02:06:25 +0000
parents 33690fc4e175
children c708e9ee9e41
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 	    {