1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-12 09:28:24 +00:00

(GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits

for the character code.
This commit is contained in:
Gerd Moellmann 2000-07-26 14:10:02 +00:00
parent 8ea64148b5
commit 4728a55337

View 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? */