changeset 30475:fe219c6d2ba2

(GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits for the character code.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 26 Jul 2000 14:10:02 +0000
parents 5fa63570712c
children 26fe451fc5f7
files src/dispextern.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispextern.h	Wed Jul 26 14:09:40 2000 +0000
+++ b/src/dispextern.h	Wed Jul 26 14:10:02 2000 +0000
@@ -373,9 +373,9 @@
    character is multibyte, return -1 as we can't use glyph table for a
    multibyte character. */
      
-#define GLYPH_FROM_CHAR_GLYPH(GLYPH)		\
-  ((GLYPH).u.ch < 256				\
-   ? ((GLYPH).u.ch | ((GLYPH).face_id << 8))	\
+#define GLYPH_FROM_CHAR_GLYPH(GLYPH)				\
+  ((GLYPH).u.ch < 256						\
+   ? ((GLYPH).u.ch | ((GLYPH).face_id << CHARACTERBITS))	\
    : -1)
 
 /* Is GLYPH a padding glyph?  */