diff options
| author | Richard M. Stallman | 1994-07-20 19:35:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-20 19:35:41 +0000 |
| commit | 19dff8dc59da178d18cee1dbe3207be80d69866c (patch) | |
| tree | 97dbc59bffd4d8b8b4b1e3c80b581f935cd2a8c7 | |
| parent | 821188d3962d9085a52435ae28a43cbfee114fed (diff) | |
| download | emacs-19dff8dc59da178d18cee1dbe3207be80d69866c.tar.gz emacs-19dff8dc59da178d18cee1dbe3207be80d69866c.zip | |
(direct_output_for_insert): Dpn't call compute_char_face
for a non-X frame.
| -rw-r--r-- | src/dispnew.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 0e89f037de8..c2e27acf0d3 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1085,9 +1085,12 @@ direct_output_for_insert (g) | |||
| 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; |