]> git.eshelyaron.com Git - emacs.git/commitdiff
(null_glyph_slice): New var.
authorKim F. Storm <storm@cua.dk>
Wed, 28 Apr 2004 21:00:40 +0000 (21:00 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 28 Apr 2004 21:00:40 +0000 (21:00 +0000)
(append_glyph, append_composite_glyph, append_stretch_glyph):
Use it to initialize glyph slice.

src/xdisp.c

index 54efa19c5cc7c0233005461c7da06f0342843e8c..08a5db4df397e234c7f4407a38c853976f33d938 100644 (file)
@@ -799,6 +799,9 @@ int help_echo_pos;
 
 Lisp_Object previous_help_echo_string;
 
+/* Null glyph slice */
+
+static struct glyph_slice null_glyph_slice = { 0, 0, 0, 0 };
 
 \f
 /* Function prototypes.  */
@@ -18092,6 +18095,7 @@ append_glyph (it)
       glyph->glyph_not_available_p = it->glyph_not_available_p;
       glyph->face_id = it->face_id;
       glyph->u.ch = it->char_to_display;
+      glyph->slice = null_glyph_slice;
       glyph->font_type = FONT_TYPE_UNKNOWN;
       ++it->glyph_row->used[area];
     }
@@ -18128,6 +18132,7 @@ append_composite_glyph (it)
       glyph->glyph_not_available_p = 0;
       glyph->face_id = it->face_id;
       glyph->u.cmp_id = it->cmp_id;
+      glyph->slice = null_glyph_slice;
       glyph->font_type = FONT_TYPE_UNKNOWN;
       ++it->glyph_row->used[area];
     }
@@ -18339,6 +18344,7 @@ append_stretch_glyph (it, object, width, height, ascent)
       glyph->face_id = it->face_id;
       glyph->u.stretch.ascent = ascent;
       glyph->u.stretch.height = height;
+      glyph->slice = null_glyph_slice;
       glyph->font_type = FONT_TYPE_UNKNOWN;
       ++it->glyph_row->used[area];
     }