diff src/xterm.c @ 106799:142b86c0d21d

Display buffer name, etc. in mode line by composing correctly.
author Kenichi Handa <handa@m17n.org>
date Wed, 13 Jan 2010 10:29:58 +0900
parents 21fd634f447a
children 1d1d5d9bd884
line wrap: on
line diff
--- a/src/xterm.c	Tue Jan 12 13:01:30 2010 +0900
+++ b/src/xterm.c	Wed Jan 13 10:29:58 2010 +0900
@@ -1378,19 +1378,27 @@
 	      if (j < i)
 		{
 		  font->driver->draw (s, j, i, x, y, 0);
+		  if (s->face->overstrike)
+		    font->driver->draw (s, j, i, x + 1, y, 0);
 		  x += width;
 		}
 	      xoff = LGLYPH_XOFF (glyph);
 	      yoff = LGLYPH_YOFF (glyph);
 	      wadjust = LGLYPH_WADJUST (glyph);
 	      font->driver->draw (s, i, i + 1, x + xoff, y + yoff, 0);
+	      if (s->face->overstrike)
+		font->driver->draw (s, i, i + 1, x + xoff + 1, y + yoff, 0);
 	      x += wadjust;
 	      j = i + 1;
 	      width = 0;
 	    }
 	}
       if (j < i)
-	font->driver->draw (s, j, i, x, y, 0);
+	{
+	  font->driver->draw (s, j, i, x, y, 0);
+	  if (s->face->overstrike)
+	    font->driver->draw (s, j, i, x + 1, y, 0);
+	}
     }
 }