Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5f81871e
Commit
5f81871e
authored
Jun 17, 2005
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(spec_glyph_lookup_face): New function.
(build_frame_matrix_from_leaf_window): Use it.
parent
c68b9c2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
src/dispnew.c
src/dispnew.c
+22
-0
No files found.
src/dispnew.c
View file @
5f81871e
...
...
@@ -2722,6 +2722,7 @@ build_frame_matrix_from_leaf_window (frame_matrix, w)
right_border_glyph
=
(
dp
&&
INTEGERP
(
DISP_BORDER_GLYPH
(
dp
))
?
XINT
(
DISP_BORDER_GLYPH
(
dp
))
:
'|'
);
right_border_glyph
=
spec_glyph_lookup_face
(
w
,
right_border_glyph
);
}
}
else
...
...
@@ -2802,6 +2803,27 @@ build_frame_matrix_from_leaf_window (frame_matrix, w)
}
}
/* Given a user-specified glyph, possibly including a Lisp-level face
ID, return a glyph that has a realized face ID.
This is used for glyphs displayed specially and not part of the text;
for instance, vertical separators, truncation markers, etc. */
GLYPH
spec_glyph_lookup_face
(
w
,
glyph
)
struct
window
*
w
;
GLYPH
glyph
;
{
int
lface_id
=
FAST_GLYPH_FACE
(
glyph
);
/* Convert the glyph's specified face to a realized (cache) face. */
if
(
lface_id
>
0
)
{
int
face_id
=
merge_faces
(
XFRAME
(
w
->
frame
),
Qt
,
lface_id
,
DEFAULT_FACE_ID
);
glyph
=
FAST_MAKE_GLYPH
(
FAST_GLYPH_CHAR
(
glyph
),
face_id
);
}
return
glyph
;
}
/* Add spaces to a glyph row ROW in a window matrix.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment