[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/w32term.c,v
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/w32term.c,v |
Date: |
Fri, 23 May 2008 06:11:53 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kenichi Handa <handa> 08/05/23 06:11:53
Index: w32term.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/w32term.c,v
retrieving revision 1.290
retrieving revision 1.291
diff -u -b -r1.290 -r1.291
--- w32term.c 23 May 2008 04:43:48 -0000 1.290
+++ w32term.c 23 May 2008 06:11:53 -0000 1.291
@@ -2909,6 +2909,12 @@
position = (s->font->descent + 1) / 2;
}
}
+ /* Check the sanity of thickness and position. We should
+ avoid drawing underline out of the current line area. */
+ if (s->y + s->height <= s->ybase + position)
+ position = s->y + s->height - 1;
+ if (s->y + s->height < s->ybase + position + thickness)
+ thickness = (s->y + s->height) - (s->ybase + position);
s->underline_thickness = thickness;
s->underline_position =position;
y = s->ybase + position;
- [Emacs-diffs] Changes to emacs/src/w32term.c,v, Kenichi Handa, 2008/05/13
- [Emacs-diffs] Changes to emacs/src/w32term.c,v, Glenn Morris, 2008/05/14
- [Emacs-diffs] Changes to emacs/src/w32term.c,v, Jason Rumney, 2008/05/14
- [Emacs-diffs] Changes to emacs/src/w32term.c,v, Juanma Barranquero, 2008/05/21
- [Emacs-diffs] Changes to emacs/src/w32term.c,v, Kenichi Handa, 2008/05/23
- [Emacs-diffs] Changes to emacs/src/w32term.c,v,
Kenichi Handa <=
- [Emacs-diffs] Changes to emacs/src/w32term.c,v, Kenichi Handa, 2008/05/25
- [Emacs-diffs] Changes to emacs/src/w32term.c,v, Jason Rumney, 2008/05/28