diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c3314cb98e5..386c3d99a47 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-04-29 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * xdisp.c (null_glyph_slice): New var. | ||
| 4 | (append_glyph, append_composite_glyph, append_stretch_glyph): | ||
| 5 | Use it to initialize glyph slice. | ||
| 6 | |||
| 1 | 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup. | 9 | * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup. |
diff --git a/src/xdisp.c b/src/xdisp.c index e77fa98cab1..4a79521f65d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -795,6 +795,9 @@ int help_echo_pos; | |||
| 795 | 795 | ||
| 796 | Lisp_Object previous_help_echo_string; | 796 | Lisp_Object previous_help_echo_string; |
| 797 | 797 | ||
| 798 | /* Null glyph slice */ | ||
| 799 | |||
| 800 | static struct glyph_slice null_glyph_slice = { 0, 0, 0, 0 }; | ||
| 798 | 801 | ||
| 799 | 802 | ||
| 800 | /* Function prototypes. */ | 803 | /* Function prototypes. */ |
| @@ -18091,6 +18094,7 @@ append_glyph (it) | |||
| 18091 | glyph->glyph_not_available_p = it->glyph_not_available_p; | 18094 | glyph->glyph_not_available_p = it->glyph_not_available_p; |
| 18092 | glyph->face_id = it->face_id; | 18095 | glyph->face_id = it->face_id; |
| 18093 | glyph->u.ch = it->char_to_display; | 18096 | glyph->u.ch = it->char_to_display; |
| 18097 | glyph->slice = null_glyph_slice; | ||
| 18094 | glyph->font_type = FONT_TYPE_UNKNOWN; | 18098 | glyph->font_type = FONT_TYPE_UNKNOWN; |
| 18095 | ++it->glyph_row->used[area]; | 18099 | ++it->glyph_row->used[area]; |
| 18096 | } | 18100 | } |
| @@ -18127,6 +18131,7 @@ append_composite_glyph (it) | |||
| 18127 | glyph->glyph_not_available_p = 0; | 18131 | glyph->glyph_not_available_p = 0; |
| 18128 | glyph->face_id = it->face_id; | 18132 | glyph->face_id = it->face_id; |
| 18129 | glyph->u.cmp_id = it->cmp_id; | 18133 | glyph->u.cmp_id = it->cmp_id; |
| 18134 | glyph->slice = null_glyph_slice; | ||
| 18130 | glyph->font_type = FONT_TYPE_UNKNOWN; | 18135 | glyph->font_type = FONT_TYPE_UNKNOWN; |
| 18131 | ++it->glyph_row->used[area]; | 18136 | ++it->glyph_row->used[area]; |
| 18132 | } | 18137 | } |
| @@ -18338,6 +18343,7 @@ append_stretch_glyph (it, object, width, height, ascent) | |||
| 18338 | glyph->face_id = it->face_id; | 18343 | glyph->face_id = it->face_id; |
| 18339 | glyph->u.stretch.ascent = ascent; | 18344 | glyph->u.stretch.ascent = ascent; |
| 18340 | glyph->u.stretch.height = height; | 18345 | glyph->u.stretch.height = height; |
| 18346 | glyph->slice = null_glyph_slice; | ||
| 18341 | glyph->font_type = FONT_TYPE_UNKNOWN; | 18347 | glyph->font_type = FONT_TYPE_UNKNOWN; |
| 18342 | ++it->glyph_row->used[area]; | 18348 | ++it->glyph_row->used[area]; |
| 18343 | } | 18349 | } |