changeset 90425:5976e428d68e

(xfont_encode_char): Fix calculation of char2b.
author Kenichi Handa <handa@m17n.org>
date Wed, 07 Jun 2006 06:35:31 +0000
parents 4c7d4b278599
children e9ed7d437c21
files src/xfont.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfont.c	Tue Jun 06 03:57:22 2006 +0000
+++ b/src/xfont.c	Wed Jun 07 06:35:31 2006 +0000
@@ -774,8 +774,8 @@
       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);
 }