comparison src/dispextern.h @ 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 21d1c542f98e
children 1c138ac4bf6d
comparison
equal deleted inserted replaced
30474:5fa63570712c 30475:fe219c6d2ba2
371 371
372 /* Construct a glyph code from a character glyph GLYPH. If the 372 /* Construct a glyph code from a character glyph GLYPH. If the
373 character is multibyte, return -1 as we can't use glyph table for a 373 character is multibyte, return -1 as we can't use glyph table for a
374 multibyte character. */ 374 multibyte character. */
375 375
376 #define GLYPH_FROM_CHAR_GLYPH(GLYPH) \ 376 #define GLYPH_FROM_CHAR_GLYPH(GLYPH) \
377 ((GLYPH).u.ch < 256 \ 377 ((GLYPH).u.ch < 256 \
378 ? ((GLYPH).u.ch | ((GLYPH).face_id << 8)) \ 378 ? ((GLYPH).u.ch | ((GLYPH).face_id << CHARACTERBITS)) \
379 : -1) 379 : -1)
380 380
381 /* Is GLYPH a padding glyph? */ 381 /* Is GLYPH a padding glyph? */
382 382
383 #define CHAR_GLYPH_PADDING_P(GLYPH) (GLYPH).padding_p 383 #define CHAR_GLYPH_PADDING_P(GLYPH) (GLYPH).padding_p