aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-12-12 21:05:35 +0800
committerPo Lu2021-12-12 21:05:35 +0800
commit5bc785d81c01e00e187bd129d86f47fc89ff3b3b (patch)
tree710e80c45beadf27c67ff106276072ab3d49c12d /src
parent194556425f140b8599467959b73d5954a59128e3 (diff)
downloademacs-5bc785d81c01e00e187bd129d86f47fc89ff3b3b.tar.gz
emacs-5bc785d81c01e00e187bd129d86f47fc89ff3b3b.zip
Fix overline display when there is a box
* src/w32term.c (w32_draw_glyph_string): * src/xterm.c (x_draw_glyph_string): Draw box before any text decorations.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c8
-rw-r--r--src/xterm.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 5c6a9fef3aa..fdb088deda2 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2540,6 +2540,10 @@ w32_draw_glyph_string (struct glyph_string *s)
2540 2540
2541 if (!s->for_overlaps) 2541 if (!s->for_overlaps)
2542 { 2542 {
2543 /* Draw relief if not yet drawn. */
2544 if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
2545 w32_draw_glyph_string_box (s);
2546
2543 /* Draw underline. */ 2547 /* Draw underline. */
2544 if (s->face->underline) 2548 if (s->face->underline)
2545 { 2549 {
@@ -2683,10 +2687,6 @@ w32_draw_glyph_string (struct glyph_string *s)
2683 } 2687 }
2684 } 2688 }
2685 2689
2686 /* Draw relief if not yet drawn. */
2687 if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
2688 w32_draw_glyph_string_box (s);
2689
2690 if (s->prev) 2690 if (s->prev)
2691 { 2691 {
2692 struct glyph_string *prev; 2692 struct glyph_string *prev;
diff --git a/src/xterm.c b/src/xterm.c
index 0dc944fd819..9d60292756d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4045,6 +4045,10 @@ x_draw_glyph_string (struct glyph_string *s)
4045 4045
4046 if (!s->for_overlaps) 4046 if (!s->for_overlaps)
4047 { 4047 {
4048 /* Draw relief if not yet drawn. */
4049 if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
4050 x_draw_glyph_string_box (s);
4051
4048 /* Draw underline. */ 4052 /* Draw underline. */
4049 if (s->face->underline) 4053 if (s->face->underline)
4050 { 4054 {
@@ -4200,10 +4204,6 @@ x_draw_glyph_string (struct glyph_string *s)
4200 } 4204 }
4201 } 4205 }
4202 4206
4203 /* Draw relief if not yet drawn. */
4204 if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
4205 x_draw_glyph_string_box (s);
4206
4207 if (s->prev) 4207 if (s->prev)
4208 { 4208 {
4209 struct glyph_string *prev; 4209 struct glyph_string *prev;