aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c5
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;