changeset 91270:0dab56b22dca

(xfont_encode_char): Use the macro FONT_INVALID_CODE.
author Kenichi Handa <handa@m17n.org>
date Tue, 25 Dec 2007 10:31:10 +0000
parents 421d7c7d296a
children fed5211f4809
files src/xfont.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfont.c	Tue Dec 25 10:30:29 2007 +0000
+++ b/src/xfont.c	Tue Dec 25 10:31:10 2007 +0000
@@ -717,16 +717,16 @@
   charset = CHARSET_FROM_ID (font->encoding_charset);
   code = ENCODE_CHAR (charset, c);
   if (code == CHARSET_INVALID_CODE (charset))
-    return 0xFFFFFFFF;
+    return FONT_INVALID_CODE;
   if (font->repertory_charset >= 0)
     {
       charset = CHARSET_FROM_ID (font->repertory_charset);
       return (ENCODE_CHAR (charset, c) != CHARSET_INVALID_CODE (charset)
-	      ? code : 0xFFFFFFFF);
+	      ? code : FONT_INVALID_CODE);
     }
   char2b.byte1 = code >> 8;
   char2b.byte2 = code & 0xFF;
-  return (xfont_get_pcm (font->font.font, &char2b) ? code : 0xFFFFFFFF);
+  return (xfont_get_pcm (font->font.font, &char2b) ? code : FONT_INVALID_CODE);
 }
 
 static int