Fix mouse face in NS port
* src/nsterm.m (ns_draw_glyph_string): Set s->face to the mouse face.
This commit is contained in:
parent
057fd1ee9b
commit
278e4fc9c6
1 changed files with 13 additions and 0 deletions
13
src/nsterm.m
13
src/nsterm.m
|
@ -3976,6 +3976,19 @@ Function modeled after x_draw_glyph_string_box ().
|
|||
NSRect r[2];
|
||||
int n;
|
||||
char box_drawn_p = 0;
|
||||
|
||||
struct face *face = s->face;
|
||||
if (s->hl == DRAW_MOUSE_FACE)
|
||||
{
|
||||
face
|
||||
= FACE_FROM_ID_OR_NULL (s->f,
|
||||
MOUSE_HL_INFO (s->f)->mouse_face_face_id);
|
||||
if (!face)
|
||||
face = FACE_FROM_ID (s->f, MOUSE_FACE_ID);
|
||||
}
|
||||
|
||||
s->face = face;
|
||||
|
||||
struct font *font = s->face->font;
|
||||
if (! font) font = FRAME_FONT (s->f);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue