aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-17 07:25:44 +0000
committerRichard M. Stallman1994-10-17 07:25:44 +0000
commit95887807517a3bb4bbdeb1a52f336e45c219ee01 (patch)
treee64136a571f99053766821836c4d8918a0bc73fb /src
parent990ba8548cdcd175a68aeb3ade98fa909f3ee8f4 (diff)
downloademacs-95887807517a3bb4bbdeb1a52f336e45c219ee01.tar.gz
emacs-95887807517a3bb4bbdeb1a52f336e45c219ee01.zip
(intern_face): Update mask properly to set stipple
and fill_style. Set everything all at once in XCreateGC.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index e1240de30ad..3400be71332 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -240,14 +240,15 @@ intern_face (f, face)
240 240
241 mask = GCForeground | GCBackground | GCFont | GCGraphicsExposures; 241 mask = GCForeground | GCBackground | GCFont | GCGraphicsExposures;
242 if (face->stipple && face->stipple != FACE_DEFAULT) 242 if (face->stipple && face->stipple != FACE_DEFAULT)
243 xgcv.fill_style = FillStippled; 243 {
244 xgcv.fill_style = FillStippled;
245 xgcv.stipple = x_bitmap_pixmap (f, face->stipple);
246 mask |= GCFillStyle | GCStipple;
247 }
244 248
245 gc = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 249 gc = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
246 mask, &xgcv); 250 mask, &xgcv);
247 251
248 if (face->stipple && face->stipple != FACE_DEFAULT)
249 XSetStipple (FRAME_X_DISPLAY (f), gc, x_bitmap_pixmap (f, face->stipple));
250
251 face->gc = gc; 252 face->gc = gc;
252 253
253 UNBLOCK_INPUT; 254 UNBLOCK_INPUT;