[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/pgtk 13edadb 2/2: Fix overline display when there is a box on PG
From: |
Po Lu |
Subject: |
feature/pgtk 13edadb 2/2: Fix overline display when there is a box on PGTK |
Date: |
Sun, 12 Dec 2021 08:44:46 -0500 (EST) |
branch: feature/pgtk
commit 13edadb4927c4f5bf130d602d60d29099e50a166
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix overline display when there is a box on PGTK
* src/pgtkterm.c (pgtk_draw_glyph_string): Draw box before any
text decorations.
---
src/pgtkterm.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index ed9d086..bd61c65 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -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;