Commit 95887807 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(intern_face): Update mask properly to set stipple

and fill_style.  Set everything all at once in XCreateGC.
parent 990ba854
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment