comparison src/dispnew.c @ 8301:c01188c50e70

(direct_output_for_insert): Dpn't call compute_char_face for a non-X frame.
author Richard M. Stallman <rms@gnu.org>
date Wed, 20 Jul 1994 19:35:41 +0000
parents 60e866c3e99c
children b5d2495d6553
comparison
equal deleted inserted replaced
8300:95b09cdfc59d 8301:c01188c50e70
1083 /* Give up if w is minibuffer and a message is being displayed there */ 1083 /* Give up if w is minibuffer and a message is being displayed there */
1084 || (MINI_WINDOW_P (w) && echo_area_glyphs)) 1084 || (MINI_WINDOW_P (w) && echo_area_glyphs))
1085 return 0; 1085 return 0;
1086 1086
1087 { 1087 {
1088 int face = 0;
1088 #ifdef HAVE_X_WINDOWS 1089 #ifdef HAVE_X_WINDOWS
1089 int dummy; 1090 int dummy;
1090 int face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point); 1091
1092 if (FRAME_X_P (frame))
1093 face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point);
1091 #endif 1094 #endif
1092 current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face); 1095 current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face);
1093 current_frame->charstarts[vpos][hpos] = point - 1; 1096 current_frame->charstarts[vpos][hpos] = point - 1;
1094 /* Record the entry for after the newly inserted character. */ 1097 /* Record the entry for after the newly inserted character. */
1095 current_frame->charstarts[vpos][hpos + 1] = point; 1098 current_frame->charstarts[vpos][hpos + 1] = point;