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.
This commit is contained in:
Po Lu 2021-12-12 21:05:35 +08:00
parent 194556425f
commit 5bc785d81c
2 changed files with 8 additions and 8 deletions

View 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;

View 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;