Commit 4728a553 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits

for the character code.
parent 8ea64148
......@@ -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? */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment