diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-10-17 07:25:44 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-10-17 07:25:44 +0000 |
commit | 2ff9fb98b274e04fd52c28012c8b90a44a573856 (patch) | |
tree | 7d93d40556e500923b800280d1e6e0f7a79d2b0d /src/xfaces.c | |
parent | d8f792c6724235d4b466ecb56bfc10da8eb07769 (diff) | |
download | emacs-2ff9fb98b274e04fd52c28012c8b90a44a573856.tar.gz |
(intern_face): Update mask properly to set stipple
and fill_style. Set everything all at once in XCreateGC.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 9 |
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) mask = GCForeground | GCBackground | GCFont | GCGraphicsExposures; if (face->stipple && face->stipple != FACE_DEFAULT) - xgcv.fill_style = FillStippled; + { + xgcv.fill_style = FillStippled; + xgcv.stipple = x_bitmap_pixmap (f, face->stipple); + mask |= GCFillStyle | GCStipple; + } gc = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), mask, &xgcv); - if (face->stipple && face->stipple != FACE_DEFAULT) - XSetStipple (FRAME_X_DISPLAY (f), gc, x_bitmap_pixmap (f, face->stipple)); - face->gc = gc; UNBLOCK_INPUT; |