]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix overline display when there is a box
authorPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 13:05:35 +0000 (21:05 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 13:05:35 +0000 (21:05 +0800)
* src/w32term.c (w32_draw_glyph_string):
* src/xterm.c (x_draw_glyph_string): Draw box before any text
decorations.

src/w32term.c
src/xterm.c

index 5c6a9fef3aad17e76aab73857d0e6d101a9696b2..fdb088deda24dc8609dec161336cf768e6a4f637 100644 (file)
@@ -2540,6 +2540,10 @@ w32_draw_glyph_string (struct glyph_string *s)
 
   if (!s->for_overlaps)
     {
+      /* Draw relief if not yet drawn.  */
+      if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
+        w32_draw_glyph_string_box (s);
+
       /* Draw underline.  */
       if (s->face->underline)
         {
@@ -2683,10 +2687,6 @@ w32_draw_glyph_string (struct glyph_string *s)
             }
         }
 
-      /* Draw relief if not yet drawn.  */
-      if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
-        w32_draw_glyph_string_box (s);
-
       if (s->prev)
         {
           struct glyph_string *prev;
index 0dc944fd81947e9950c188ca6399ae43a0bf670d..9d60292756d4e169b0ebffef2a1122f6b04aa301 100644 (file)
@@ -4045,6 +4045,10 @@ x_draw_glyph_string (struct glyph_string *s)
 
   if (!s->for_overlaps)
     {
+      /* Draw relief if not yet drawn.  */
+      if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
+       x_draw_glyph_string_box (s);
+
       /* Draw underline.  */
       if (s->face->underline)
         {
@@ -4200,10 +4204,6 @@ x_draw_glyph_string (struct glyph_string *s)
            }
        }
 
-      /* Draw relief if not yet drawn.  */
-      if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
-       x_draw_glyph_string_box (s);
-
       if (s->prev)
        {
          struct glyph_string *prev;