]> code.delx.au - gnu-emacs/blobdiff - src/xterm.c
Make underwave look more triangular and also degrade gracefully for small fonts....
[gnu-emacs] / src / xterm.c
index 47a38eeefae56eadc91c8fdc7a43c2396822d3e4..32b19b5cffb6cf381e9c156fb079df01864b2842 100644 (file)
@@ -2656,14 +2656,14 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
 static void
 x_draw_underwave (struct glyph_string *s)
 {
-  int wave_height = 2, wave_length = 3;
+  int wave_height = 3, wave_length = 2;
   int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax;
   XRectangle wave_clip, string_clip, final_clip;
 
   dx = wave_length;
   dy = wave_height - 1;
   x0 = s->x;
-  y0 = s->ybase + 1;
+  y0 = s->ybase - wave_height + 3;
   width = s->width;
   xmax = x0 + width;