diff options
| author | Eli Zaretskii | 2017-03-06 18:22:53 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-03-06 18:22:53 +0200 |
| commit | eae5dcd57d1a73688ccb576decbf90fa711105e7 (patch) | |
| tree | 3418f0885a938b27aa016dc4eee5770f4d98eb44 /src/dispextern.h | |
| parent | 0fae08d0072f74d97ca70b91a4d46d8d28a03952 (diff) | |
| download | emacs-eae5dcd57d1a73688ccb576decbf90fa711105e7.tar.gz emacs-eae5dcd57d1a73688ccb576decbf90fa711105e7.zip | |
A better fix for bug#25845
* src/xdisp.c (font_for_underline_metrics): New function.
* src/dispextern.h: Add its prototype.
* src/xterm.c (x_draw_glyph_string):
* src/w32term.c (x_draw_glyph_string):
* src/nsterm.m (ns_draw_text_decoration): Call it. This avoids
having identical code 3 times in 3 different files.
Diffstat (limited to 'src/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index e030618a9b7..679820d5063 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3293,6 +3293,7 @@ extern void dump_glyph_string (struct glyph_string *) EXTERNALLY_VISIBLE; | |||
| 3293 | 3293 | ||
| 3294 | extern void x_get_glyph_overhangs (struct glyph *, struct frame *, | 3294 | extern void x_get_glyph_overhangs (struct glyph *, struct frame *, |
| 3295 | int *, int *); | 3295 | int *, int *); |
| 3296 | extern struct font *font_for_underline_metrics (struct glyph_string *); | ||
| 3296 | extern void x_produce_glyphs (struct it *); | 3297 | extern void x_produce_glyphs (struct it *); |
| 3297 | 3298 | ||
| 3298 | extern void x_write_glyphs (struct window *, struct glyph_row *, | 3299 | extern void x_write_glyphs (struct window *, struct glyph_row *, |