]> git.eshelyaron.com Git - emacs.git/commitdiff
(GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
authorGerd Moellmann <gerd@gnu.org>
Wed, 26 Jul 2000 14:10:02 +0000 (14:10 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 26 Jul 2000 14:10:02 +0000 (14:10 +0000)
for the character code.

src/dispextern.h

index 44a1a04d6c18ef216fdc4a9e159e89bf71a0d272..a067bcf72f88ed3fbccefb51a1cfb9776984fdec 100644 (file)
@@ -373,9 +373,9 @@ struct glyph
    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?  */