From: Gerd Moellmann Date: Wed, 26 Jul 2000 14:10:02 +0000 (+0000) Subject: (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits X-Git-Tag: emacs-pretest-21.0.90~2596 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4728a55337f5c9a3fcd48d638c42e8cb5a8e9be8;p=emacs.git (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits for the character code. --- diff --git a/src/dispextern.h b/src/dispextern.h index 44a1a04d6c1..a067bcf72f8 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -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? */