summaryrefslogtreecommitdiff
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-07-02 04:23:45 +0000
committerRichard M. Stallman <rms@gnu.org>1994-07-02 04:23:45 +0000
commitf9afd40286ac612a59b6a7a1b5e4341dc5f0ba35 (patch)
treec37bcbfe06a091593f6b9cdf59f517329cb1fe9a /src/xfaces.c
parented947cae614cf6f4bd1c572a65f2560da62affb2 (diff)
downloademacs-f9afd40286ac612a59b6a7a1b5e4341dc5f0ba35.tar.gz
(get_cached_face): Set the cached_index field.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index b2e2cc2d0d9..e147fb0c05b 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -248,7 +248,10 @@ get_cached_face (f, face)
for (i = 0; i < nfaces; i++)
{
if (face_eql (face_vector[i], face))
- return face_vector[i];
+ {
+ face->cached_index = i;
+ return face_vector[i];
+ }
if (face_vector[i] == 0)
empty = i;
}
@@ -273,6 +276,7 @@ get_cached_face (f, face)
/* Make a graphics context for it. */
build_face (f, result);
+ face->cached_index = empty;
return result;
}