Commit 88649c62 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(xfont_encode_char): Fix calculation of char2b.

parent 3ec0b7a9
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment