diff src/w32term.c @ 95792:953225ddde83

* xdisp.c (underline_minimum_offset): Rename from xterm.c's x_underline_minimum_display_offset. (syms_of_xdisp): Declare it here rather than in xterm.c. * dispextern.h (underline_minimum_offset): Declare it. * w32term.c (x_draw_glyph_string): Use it. * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c. (syms_of_xterm): Don't declare it any more. (x_draw_glyph_string): Adjust to the new name. * cus-start.el (underline-minimum-offset) Rename from x-underline-minimum-display-offset.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 10 Jun 2008 20:22:10 +0000
parents 0554ef53fccd
children e7d9b9d2e1ef
line wrap: on
line diff
--- a/src/w32term.c	Tue Jun 10 20:01:54 2008 +0000
+++ b/src/w32term.c	Tue Jun 10 20:22:10 2008 +0000
@@ -2910,6 +2910,7 @@
                 else if (s->font)
                   position = (s->font->descent + 1) / 2;
                 }
+	      position = max (position, underline_minimum_offset);
             }
 	  /* Check the sanity of thickness and position.  We should
 	     avoid drawing underline out of the current line area.  */