aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2000-02-27 21:39:46 +0000
committerJason Rumney2000-02-27 21:39:46 +0000
commit1ab3e082d07c8c05803bbb8f20669df09eaabf16 (patch)
tree3e33a0956d947f2b46a8bd337e24c4a634ef75bc
parentb65a2f83ecb834784e7926f2c5ef7c9da37c9fad (diff)
downloademacs-1ab3e082d07c8c05803bbb8f20669df09eaabf16.tar.gz
emacs-1ab3e082d07c8c05803bbb8f20669df09eaabf16.zip
(handle_single_display_prop): Use FONT_HEIGHT macro.
(echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
-rw-r--r--src/xdisp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 22ce92b739b..5acc58d0d30 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2439,7 +2439,7 @@ handle_single_display_prop (it, prop, object, position)
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 }
@@ -5988,14 +5988,14 @@ echo_area_display (update_frame_p)
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)