Mercurial > emacs
comparison src/xdisp.c @ 27897:a6384a2b5574
(handle_single_display_prop): Use FONT_HEIGHT macro.
(echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 27 Feb 2000 21:39:46 +0000 |
parents | d401b5066063 |
children | 723662ab7db4 |
comparison
equal
deleted
inserted
replaced
27896:75f296b1a872 | 27897:a6384a2b5574 |
---|---|
2437 value = XCAR (XCDR (prop)); | 2437 value = XCAR (XCDR (prop)); |
2438 if (NUMBERP (value)) | 2438 if (NUMBERP (value)) |
2439 { | 2439 { |
2440 struct face *face = FACE_FROM_ID (it->f, it->face_id); | 2440 struct face *face = FACE_FROM_ID (it->f, it->face_id); |
2441 it->voffset = - (XFLOATINT (value) | 2441 it->voffset = - (XFLOATINT (value) |
2442 * (face->font->ascent + face->font->descent)); | 2442 * (FONT_HEIGHT (face->font))); |
2443 } | 2443 } |
2444 #endif /* HAVE_WINDOW_SYSTEM */ | 2444 #endif /* HAVE_WINDOW_SYSTEM */ |
2445 } | 2445 } |
2446 else if (!it->string_from_display_prop_p) | 2446 else if (!it->string_from_display_prop_p) |
2447 { | 2447 { |
5986 | 5986 |
5987 /* Don't display if frame is invisible or not yet initialized. */ | 5987 /* Don't display if frame is invisible or not yet initialized. */ |
5988 if (!FRAME_VISIBLE_P (f) || !f->glyphs_initialized_p) | 5988 if (!FRAME_VISIBLE_P (f) || !f->glyphs_initialized_p) |
5989 return 0; | 5989 return 0; |
5990 | 5990 |
5991 #ifdef HAVE_X_WINDOWS | 5991 #ifdef HAVE_WINDOW_SYSTEM |
5992 /* When Emacs starts, selected_frame may be a visible terminal | 5992 /* When Emacs starts, selected_frame may be a visible terminal |
5993 frame, even if we run under a window system. If we let this | 5993 frame, even if we run under a window system. If we let this |
5994 through, a message would be displayed on the terminal. */ | 5994 through, a message would be displayed on the terminal. */ |
5995 if (EQ (selected_frame, Vterminal_frame) | 5995 if (EQ (selected_frame, Vterminal_frame) |
5996 && !NILP (Vwindow_system)) | 5996 && !NILP (Vwindow_system)) |
5997 return 0; | 5997 return 0; |
5998 #endif /* HAVE_X_WINDOWS */ | 5998 #endif /* HAVE_WINDOW_SYSTEM */ |
5999 | 5999 |
6000 /* Redraw garbaged frames. */ | 6000 /* Redraw garbaged frames. */ |
6001 if (frame_garbaged) | 6001 if (frame_garbaged) |
6002 clear_garbaged_frames (); | 6002 clear_garbaged_frames (); |
6003 | 6003 |