summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2006-06-07 06:35:31 +0000
committerKenichi Handa <handa@m17n.org>2006-06-07 06:35:31 +0000
commit7c77754c69b7ef16ef50a37af7a82bd1069b5722 (patch)
tree5ad4aa5f8adbfc7e7cdbc7786895a78404f05e4a /src
parent30b295071ec2a33d3b05bf7ea204f1bda894d53b (diff)
downloademacs-7c77754c69b7ef16ef50a37af7a82bd1069b5722.tar.gz
(xfont_encode_char): Fix calculation of char2b.
Diffstat (limited to 'src')
-rw-r--r--src/xfont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfont.c b/src/xfont.c
index 0d5d2f70b7d..463db58b11c 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -774,8 +774,8 @@ xfont_encode_char (font, c)
return (ENCODE_CHAR (charset, c) != CHARSET_INVALID_CODE (charset)
? code : 0xFFFFFFFF);
}
- char2b.byte1 = code >> 16;
- char2b.byte2 = code & 0xFFFF;
+ char2b.byte1 = code >> 8;
+ char2b.byte2 = code & 0xFF;
return (xfont_get_pcm (font->font.font, &char2b) ? code : 0xFFFFFFFF);
}