[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/pgtk d15dafe: Stop setting mouse face GC manually, as it is no l
From: |
Po Lu |
Subject: |
feature/pgtk d15dafe: Stop setting mouse face GC manually, as it is no longer required |
Date: |
Mon, 29 Nov 2021 20:12:17 -0500 (EST) |
branch: feature/pgtk
commit d15dafeefb58fc521186385a1a703f7f660f2f6b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Stop setting mouse face GC manually, as it is no longer required
* src/pgtkterm.c (x_set_mouse_face_gc): Remove obsolete code.
---
src/pgtkterm.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 8353a9c..d9b2e38 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -1007,20 +1007,6 @@ x_set_cursor_gc (struct glyph_string *s)
static void
x_set_mouse_face_gc (struct glyph_string *s)
{
- int face_id;
- struct face *face;
-
- /* What face has to be used last for the mouse face? */
- face_id = MOUSE_HL_INFO (s->f)->mouse_face_face_id;
- face = FACE_FROM_ID_OR_NULL (s->f, face_id);
- if (face == NULL)
- face = FACE_FROM_ID (s->f, MOUSE_FACE_ID);
-
- if (s->first_glyph->type == CHAR_GLYPH)
- face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch, -1, Qnil);
- else
- face_id = FACE_FOR_CHAR (s->f, face, 0, -1, Qnil);
- s->face = FACE_FROM_ID (s->f, face_id);
prepare_face_for_display (s->f, s->face);
if (s->font == s->face->font)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/pgtk d15dafe: Stop setting mouse face GC manually, as it is no longer required,
Po Lu <=