changeset 61628:c897778cd685

(realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Mon, 18 Apr 2005 11:32:29 +0000
parents 6bb23444f64f
children cacf55df1896
files src/xfaces.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Mon Apr 18 10:23:41 2005 +0000
+++ b/src/xfaces.c	Mon Apr 18 11:32:29 2005 +0000
@@ -7084,8 +7084,9 @@
      int c;
      struct face *base_face;
 {
+  struct face *face = NULL;
 #ifdef HAVE_WINDOW_SYSTEM
-  struct face *face, *default_face;
+  struct face *default_face;
   struct frame *f;
   Lisp_Object stipple, overline, strike_through, box;
 
@@ -7281,8 +7282,8 @@
     face->stipple = load_pixmap (f, stipple, &face->pixmap_w, &face->pixmap_h);
 
   xassert (FACE_SUITABLE_FOR_CHAR_P (face, c));
+#endif /* HAVE_WINDOW_SYSTEM */
   return face;
-#endif /* HAVE_WINDOW_SYSTEM */
 }