1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-14 03:37:38 -08:00

Fix overline display when there is a box on PGTK

* src/pgtkterm.c (pgtk_draw_glyph_string): Draw box before any
text decorations.
This commit is contained in:
Po Lu 2021-12-12 21:44:02 +08:00
parent 2de147e93c
commit 13edadb492

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