]> git.eshelyaron.com Git - emacs.git/commit
A better fix for bug#25845
authorEli Zaretskii <eliz@gnu.org>
Mon, 6 Mar 2017 16:22:53 +0000 (18:22 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 6 Mar 2017 16:22:53 +0000 (18:22 +0200)
commiteae5dcd57d1a73688ccb576decbf90fa711105e7
tree3418f0885a938b27aa016dc4eee5770f4d98eb44
parent0fae08d0072f74d97ca70b91a4d46d8d28a03952
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.
src/dispextern.h
src/nsterm.m
src/w32term.c
src/xdisp.c
src/xterm.c