changeset 37206:f4dc837b8ebb

(realizing_basic_faces_p): Renamed from realize_default_face_p. (realize_basic_faces): Set/clear realizing_basic_faces_p. (realize_default_face): Don't set the flag.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 05 Apr 2001 12:12:50 +0000
parents 74427fab3e58
children 0ec88bc60878
files src/xfaces.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Thu Apr 05 12:01:19 2001 +0000
+++ b/src/xfaces.c	Thu Apr 05 12:12:50 2001 +0000
@@ -489,7 +489,7 @@
 
 /* Non-zero while realizing the default face.  */
 
-static int realizing_default_face_p;
+static int realizing_basic_faces_p;
 
 /* The total number of colors currently allocated.  */
 
@@ -2362,7 +2362,7 @@
 
   /* If someone specified a default font that's scalable, try
      to do the right thing.  */
-  if (realizing_default_face_p
+  if (realizing_basic_faces_p
       && try_alternatives_p
       && n == 0
       && nignored > 0)
@@ -5954,6 +5954,7 @@
   /* Block input there so that we won't be surprised by an X expose
      event, for instance without having the faces set up.  */
   BLOCK_INPUT;
+  realizing_basic_faces_p = 1;
 
   if (realize_default_face (f))
     {
@@ -5979,6 +5980,7 @@
       success_p = 1;
     }
 
+  realizing_basic_faces_p = 0;
   UNBLOCK_INPUT;
   return success_p;
 }
@@ -6081,11 +6083,7 @@
   xassert (lface_fully_specified_p (XVECTOR (lface)->contents));
   check_lface (lface);
   bcopy (XVECTOR (lface)->contents, attrs, sizeof attrs);
-  
-  realizing_default_face_p = 1;
   face = realize_face (c, attrs, 0, NULL, DEFAULT_FACE_ID);
-  realizing_default_face_p = 0;
-
   return 1;
 }