summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-08-11 02:06:37 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-08-11 02:06:37 +0000
commit14e1270cdebbb0a3dbb340ae32d69ff4180d5e21 (patch)
tree7467e555b39046eff36b8a173a866ae0613aa08a
parent5bdc71d0cd0dde41c781591951695cf509585f78 (diff)
downloademacs-14e1270cdebbb0a3dbb340ae32d69ff4180d5e21.tar.gz
(x_draw_image_glyph_string): Adjust stipple origin when
filling pixmap with stippled background.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dd86df3ef62..0447af98490 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
+ filling pixmap with stippled background.
+
2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
* print.c (new_backquote_output): Rename from old_backquote_output.
diff --git a/src/xterm.c b/src/xterm.c
index 00d653fc19f..512fff35f50 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2476,9 +2476,11 @@ x_draw_image_glyph_string (s)
{
/* 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
{