Mercurial > emacs
changeset 34657:9ff4148959a8
(IT_write_glyphs): Compute the glyph face from str->face_id.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 18 Dec 2000 10:22:41 +0000 |
parents | 11cdca31a7cd |
children | ed47b150ac5a |
files | src/msdos.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/msdos.c Mon Dec 18 10:22:02 2000 +0000 +++ b/src/msdos.c Mon Dec 18 10:22:41 2000 +0000 @@ -999,6 +999,9 @@ register GLYPH g = GLYPH_FROM_CHAR_GLYPH (*str); int glyph_not_in_table = 0; + /* If g is negative, it means we have a multibyte character + in *str. That's what GLYPH_FROM_CHAR_GLYPH returns for + multibyte characters. */ if (g < 0 || g >= tlen) { /* This glyph doesn't have an entry in Vglyph_table. */ @@ -1034,7 +1037,7 @@ /* If the face of this glyph is different from the current screen face, update the screen attribute byte. */ - cf = FAST_GLYPH_FACE (g); + cf = str->face_id; if (cf != screen_face) IT_set_face (cf); /* handles invalid faces gracefully */