comparison src/xterm.c @ 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 1677cf1c2509
children bd4ae2a657e3 e5a68f18fcb9
comparison
equal deleted inserted replaced
78525:33690fc4e175 78526:701058c51d03
2474 /* Fill the pixmap with the background color/stipple. */ 2474 /* Fill the pixmap with the background color/stipple. */
2475 if (s->stippled_p) 2475 if (s->stippled_p)
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 {
2485 XGCValues xgcv; 2487 XGCValues xgcv;
2486 XGetGCValues (s->display, s->gc, GCForeground | GCBackground, 2488 XGetGCValues (s->display, s->gc, GCForeground | GCBackground,