aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-08-11 02:06:37 +0000
committerYAMAMOTO Mitsuharu2007-08-11 02:06:37 +0000
commit14e1270cdebbb0a3dbb340ae32d69ff4180d5e21 (patch)
tree7467e555b39046eff36b8a173a866ae0613aa08a /src/xterm.c
parent5bdc71d0cd0dde41c781591951695cf509585f78 (diff)
downloademacs-14e1270cdebbb0a3dbb340ae32d69ff4180d5e21.tar.gz
emacs-14e1270cdebbb0a3dbb340ae32d69ff4180d5e21.zip
(x_draw_image_glyph_string): Adjust stipple origin when
filling pixmap with stippled background.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c2
1 files changed, 2 insertions, 0 deletions
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)
2476 { 2476 {
2477 /* Fill background with a stipple pattern. */ 2477 /* Fill background with a stipple pattern. */
2478 XSetFillStyle (s->display, s->gc, FillOpaqueStippled); 2478 XSetFillStyle (s->display, s->gc, FillOpaqueStippled);
2479 XSetTSOrigin (s->display, s->gc, - s->x, - s->y);
2479 XFillRectangle (s->display, pixmap, s->gc, 2480 XFillRectangle (s->display, pixmap, s->gc,
2480 0, 0, s->background_width, s->height); 2481 0, 0, s->background_width, s->height);
2481 XSetFillStyle (s->display, s->gc, FillSolid); 2482 XSetFillStyle (s->display, s->gc, FillSolid);
2483 XSetTSOrigin (s->display, s->gc, 0, 0);
2482 } 2484 }
2483 else 2485 else
2484 { 2486 {