# HG changeset patch # User Eli Zaretskii # Date 977134961 0 # Node ID 9ff4148959a8d1a20679b9b0529c0417798619c9 # Parent 11cdca31a7cdf021b93305a1c1c3e6baf0e6c0b0 (IT_write_glyphs): Compute the glyph face from str->face_id. diff -r 11cdca31a7cd -r 9ff4148959a8 src/msdos.c --- 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 */