aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorKenichi Handa2000-06-06 01:08:19 +0000
committerKenichi Handa2000-06-06 01:08:19 +0000
commit1ac0700a34bcf0b98cf79a4cf42413a378b5e8ad (patch)
tree8ed6629b789d9983e6bbeebc8cf163ca8285837c /src/term.c
parent1969fae27ab8e047a16db94472c94e9b69c6b292 (diff)
downloademacs-1ac0700a34bcf0b98cf79a4cf42413a378b5e8ad.tar.gz
emacs-1ac0700a34bcf0b98cf79a4cf42413a378b5e8ad.zip
(encode_terminal_code): Change the way to check if
terminal coding does any conversion. (append_glyph): Set glyph->pixel_width correctly.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index 672eee22c6c..d21b78c6b62 100644
--- a/src/term.c
+++ b/src/term.c
@@ -954,7 +954,10 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed)
954 int result; 954 int result;
955 struct coding_system *coding; 955 struct coding_system *coding;
956 956
957 coding = (CODING_REQUIRE_ENCODING (&terminal_coding) 957 /* If terminal_coding does any conversion, use it, otherwise use
958 safe_terminal_coding. We can't use CODING_REQUIRE_ENCODING here
959 because it always return 1 if the member src_multibyte is 1. */
960 coding = (terminal_coding.common_flags & CODING_REQUIRE_ENCODING_MASK
958 ? &terminal_coding 961 ? &terminal_coding
959 : &safe_terminal_coding); 962 : &safe_terminal_coding);
960 963
@@ -1780,7 +1783,7 @@ append_glyph (it)
1780 ++i) 1783 ++i)
1781 { 1784 {
1782 glyph->type = CHAR_GLYPH; 1785 glyph->type = CHAR_GLYPH;
1783 glyph->pixel_width = 1; 1786 glyph->pixel_width = it->pixel_width;
1784 glyph->u.ch = it->c; 1787 glyph->u.ch = it->c;
1785 glyph->face_id = it->face_id; 1788 glyph->face_id = it->face_id;
1786 glyph->padding_p = i > 0; 1789 glyph->padding_p = i > 0;