summaryrefslogtreecommitdiff
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-06-17 22:03:40 +0000
committerJim Blandy <jimb@redhat.com>1993-06-17 22:03:40 +0000
commit2acc93e8d0bd3eadfc70247a542b76b8db6b89a1 (patch)
tree3532c3574295b99228a9067653b9cff63671f28a /src/xfaces.c
parentc5ccf8981d59ae724892907657ddcf0bbb1e8344 (diff)
downloademacs-2acc93e8d0bd3eadfc70247a542b76b8db6b89a1.tar.gz
* xfaces.c (compute_base_face): Initialize the face's stipple.
Although we don't use this feature now, face_eql notices it. * xfaces.c (compute_base_face): Set cached_index to an invalid index, to avoid an unnecessary comparison.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 41436ad4e40..8a00ece903d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -647,7 +647,11 @@ compute_base_face (f, face)
face->foreground = d->foreground_pixel;
face->background = d->background_pixel;
face->font = d->font;
+ face->stipple = 0;
face->underline = 0;
+
+ /* Avoid a face comparison by making this invalid. */
+ face->cached_index = -1;
}