aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-04-15 22:04:48 +0000
committerKarl Heuer1994-04-15 22:04:48 +0000
commit659a218f9564214823c9a98b7deea74b12be7e77 (patch)
tree78a041fc714b9dba57b3858582099e9d79014b5f /src
parent2da0df4def332dcf77265011dffdfd83d02429b7 (diff)
downloademacs-659a218f9564214823c9a98b7deea74b12be7e77.tar.gz
emacs-659a218f9564214823c9a98b7deea74b12be7e77.zip
(fix_glyph) [HAVE_X_WINDOWS]: When glyph face is 0, use the computed face as
given.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index fe981183e47..8cb80ad69d8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1893,16 +1893,18 @@ copy_part_of_rope (f, to, s, from, len, face)
1893 with a displayable computed face code. */ 1893 with a displayable computed face code. */
1894 1894
1895static GLYPH 1895static GLYPH
1896fix_glyph (f, glyph, current_face) 1896fix_glyph (f, glyph, cface)
1897 FRAME_PTR f; 1897 FRAME_PTR f;
1898 GLYPH glyph; 1898 GLYPH glyph;
1899 int current_face; 1899 int cface;
1900{ 1900{
1901#ifdef HAVE_X_WINDOWS 1901#ifdef HAVE_X_WINDOWS
1902 if (! FRAME_TERMCAP_P (f) && FAST_GLYPH_FACE (glyph) != 0) 1902 if (! FRAME_TERMCAP_P (f))
1903 return FAST_MAKE_GLYPH (FAST_GLYPH_CHAR (glyph), 1903 {
1904 compute_glyph_face (f, FAST_GLYPH_FACE (glyph), 1904 if (FAST_GLYPH_FACE (glyph) != 0)
1905 current_face)); 1905 cface = compute_glyph_face (f, FAST_GLYPH_FACE (glyph), cface);
1906 glyph = FAST_MAKE_GLYPH (FAST_GLYPH_CHAR (glyph), cface);
1907 }
1906#endif 1908#endif
1907 return glyph; 1909 return glyph;
1908} 1910}