diff options
| author | Eli Zaretskii | 2000-12-18 10:23:43 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-12-18 10:23:43 +0000 |
| commit | 78555fbea6530018c1cc19e882d4599e7b1c893b (patch) | |
| tree | e04e3a2025bf1c3d989adac61e1ae6707b8df885 /src | |
| parent | 5f1f59555a8708664dea8aeb2f8cda3283a2e37a (diff) | |
| download | emacs-78555fbea6530018c1cc19e882d4599e7b1c893b.tar.gz emacs-78555fbea6530018c1cc19e882d4599e7b1c893b.zip | |
(IT_write_glyphs): Compute the glyph face from str->face_id.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/msdos.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9d5bdb44aed..12a82867400 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * msdos.c (IT_write_glyphs): Compute the glyph face from | ||
| 4 | str->face_id. | ||
| 5 | |||
| 1 | 2000-12-18 Kenichi Handa <handa@etl.go.jp> | 6 | 2000-12-18 Kenichi Handa <handa@etl.go.jp> |
| 2 | 7 | ||
| 3 | * process.c (read_process_output): Don't run a filter if the code | 8 | * process.c (read_process_output): Don't run a filter if the code |
diff --git a/src/msdos.c b/src/msdos.c index 1c4e8409ed8..8466d6ba4ca 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -999,6 +999,9 @@ IT_write_glyphs (struct glyph *str, int str_len) | |||
| 999 | register GLYPH g = GLYPH_FROM_CHAR_GLYPH (*str); | 999 | register GLYPH g = GLYPH_FROM_CHAR_GLYPH (*str); |
| 1000 | int glyph_not_in_table = 0; | 1000 | int glyph_not_in_table = 0; |
| 1001 | 1001 | ||
| 1002 | /* If g is negative, it means we have a multibyte character | ||
| 1003 | in *str. That's what GLYPH_FROM_CHAR_GLYPH returns for | ||
| 1004 | multibyte characters. */ | ||
| 1002 | if (g < 0 || g >= tlen) | 1005 | if (g < 0 || g >= tlen) |
| 1003 | { | 1006 | { |
| 1004 | /* This glyph doesn't have an entry in Vglyph_table. */ | 1007 | /* This glyph doesn't have an entry in Vglyph_table. */ |
| @@ -1034,7 +1037,7 @@ IT_write_glyphs (struct glyph *str, int str_len) | |||
| 1034 | 1037 | ||
| 1035 | /* If the face of this glyph is different from the current | 1038 | /* If the face of this glyph is different from the current |
| 1036 | screen face, update the screen attribute byte. */ | 1039 | screen face, update the screen attribute byte. */ |
| 1037 | cf = FAST_GLYPH_FACE (g); | 1040 | cf = str->face_id; |
| 1038 | if (cf != screen_face) | 1041 | if (cf != screen_face) |
| 1039 | IT_set_face (cf); /* handles invalid faces gracefully */ | 1042 | IT_set_face (cf); /* handles invalid faces gracefully */ |
| 1040 | 1043 | ||