comparison src/xfaces.c @ 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 18fb43577f76
children a39c60b30e5a 042f282a2ed7
comparison
equal deleted inserted replaced
61627:6bb23444f64f 61628:c897778cd685
7082 struct face_cache *cache; 7082 struct face_cache *cache;
7083 Lisp_Object *attrs; 7083 Lisp_Object *attrs;
7084 int c; 7084 int c;
7085 struct face *base_face; 7085 struct face *base_face;
7086 { 7086 {
7087 struct face *face = NULL;
7087 #ifdef HAVE_WINDOW_SYSTEM 7088 #ifdef HAVE_WINDOW_SYSTEM
7088 struct face *face, *default_face; 7089 struct face *default_face;
7089 struct frame *f; 7090 struct frame *f;
7090 Lisp_Object stipple, overline, strike_through, box; 7091 Lisp_Object stipple, overline, strike_through, box;
7091 7092
7092 xassert (FRAME_WINDOW_P (cache->f)); 7093 xassert (FRAME_WINDOW_P (cache->f));
7093 xassert (SINGLE_BYTE_CHAR_P (c) 7094 xassert (SINGLE_BYTE_CHAR_P (c)
7279 stipple = attrs[LFACE_STIPPLE_INDEX]; 7280 stipple = attrs[LFACE_STIPPLE_INDEX];
7280 if (!NILP (stipple)) 7281 if (!NILP (stipple))
7281 face->stipple = load_pixmap (f, stipple, &face->pixmap_w, &face->pixmap_h); 7282 face->stipple = load_pixmap (f, stipple, &face->pixmap_w, &face->pixmap_h);
7282 7283
7283 xassert (FACE_SUITABLE_FOR_CHAR_P (face, c)); 7284 xassert (FACE_SUITABLE_FOR_CHAR_P (face, c));
7285 #endif /* HAVE_WINDOW_SYSTEM */
7284 return face; 7286 return face;
7285 #endif /* HAVE_WINDOW_SYSTEM */
7286 } 7287 }
7287 7288
7288 7289
7289 /* Map a specified color of face FACE on frame F to a tty color index. 7290 /* Map a specified color of face FACE on frame F to a tty color index.
7290 IDX is either LFACE_FOREGROUND_INDEX or LFACE_BACKGROUND_INDEX, and 7291 IDX is either LFACE_FOREGROUND_INDEX or LFACE_BACKGROUND_INDEX, and