diff options
| author | Gerd Moellmann | 2000-07-26 14:10:02 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-07-26 14:10:02 +0000 |
| commit | 4728a55337f5c9a3fcd48d638c42e8cb5a8e9be8 (patch) | |
| tree | 432423a68ba9a0a8fe061ec37ed52a1a690576ba /src | |
| parent | 8ea64148b5e1d22b3346a520ef4cf8dcb6ab43dd (diff) | |
| download | emacs-4728a55337f5c9a3fcd48d638c42e8cb5a8e9be8.tar.gz emacs-4728a55337f5c9a3fcd48d638c42e8cb5a8e9be8.zip | |
(GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
for the character code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
| 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? */ |