emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xterm.c,v


From: Kenichi Handa
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c,v
Date: Fri, 23 May 2008 05:33:09 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kenichi Handa <handa>   08/05/23 05:33:08

Index: xterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xterm.c,v
retrieving revision 1.991
retrieving revision 1.992
diff -u -b -r1.991 -r1.992
--- xterm.c     23 May 2008 04:43:19 -0000      1.991
+++ xterm.c     23 May 2008 05:33:08 -0000      1.992
@@ -2743,6 +2743,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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]