aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorThien-Thi Nguyen <[email protected]>2005-04-18 11:34:46 +0000
committerThien-Thi Nguyen <[email protected]>2005-04-18 11:34:46 +0000
commit7d603e3f8e85afcde9192526857daa7c238d6b90 (patch)
treee1686358eb8710b454f86723bd39e68ece85ada9 /src/xfaces.c
parentcae0724067c878fd2aba1d51c0101053a53eaf5c (diff)
(realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 146036aa97..3ff8917ff9 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -7084,8 +7084,9 @@ realize_x_face (cache, attrs, c, base_face)
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 @@ realize_x_face (cache, attrs, c, base_face)
face->stipple = load_pixmap (f, stipple, &face->pixmap_w, &face->pixmap_h);
xassert (FACE_SUITABLE_FOR_CHAR_P (face, c));
- return face;
#endif /* HAVE_WINDOW_SYSTEM */
+ return face;
}