aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2013-01-04 10:58:07 +0900
committerYAMAMOTO Mitsuharu2013-01-04 10:58:07 +0900
commitf032a318307096c87c4c19928e623e30175d9b1a (patch)
treea292ee0870474b4c965f4d28c0937a58d3e90762 /src/xterm.c
parent4217dc299c3b466e674271f8eb8a0a88e5b3795f (diff)
downloademacs-f032a318307096c87c4c19928e623e30175d9b1a.tar.gz
emacs-f032a318307096c87c4c19928e623e30175d9b1a.zip
Make underwave look more triangular and also degrade gracefully for small fonts. (Bug#13000)
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 47a38eeefae..32b19b5cffb 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2656,14 +2656,14 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
2656static void 2656static void
2657x_draw_underwave (struct glyph_string *s) 2657x_draw_underwave (struct glyph_string *s)
2658{ 2658{
2659 int wave_height = 2, wave_length = 3; 2659 int wave_height = 3, wave_length = 2;
2660 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax; 2660 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax;
2661 XRectangle wave_clip, string_clip, final_clip; 2661 XRectangle wave_clip, string_clip, final_clip;
2662 2662
2663 dx = wave_length; 2663 dx = wave_length;
2664 dy = wave_height - 1; 2664 dy = wave_height - 1;
2665 x0 = s->x; 2665 x0 = s->x;
2666 y0 = s->ybase + 1; 2666 y0 = s->ybase - wave_height + 3;
2667 width = s->width; 2667 width = s->width;
2668 xmax = x0 + width; 2668 xmax = x0 + width;
2669 2669