]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix overline display when there is a box on PGTK
authorPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 13:44:02 +0000 (21:44 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 12 Dec 2021 13:44:02 +0000 (21:44 +0800)
* src/pgtkterm.c (pgtk_draw_glyph_string): Draw box before any
text decorations.

src/pgtkterm.c

index ed9d086273faa1077ac07d3caf9207701074bbe4..bd61c65edde0968e007a221a7045e0daa4716cd8 100644 (file)
@@ -2503,6 +2503,10 @@ pgtk_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)
        {
@@ -2617,10 +2621,6 @@ pgtk_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;