changeset 2979:df018689853e

* lisp.h (GLYPH_FACE): Remember that the face portion of a glyph can be 24 bits, not just eight.
author Jim Blandy <jimb@redhat.com>
date Sun, 23 May 1993 19:23:38 +0000
parents 07010383044d
children 654eebe93c27
files src/lisp.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Sun May 23 18:52:53 1993 +0000
+++ b/src/lisp.h	Sun May 23 19:23:38 1993 +0000
@@ -606,7 +606,7 @@
 #define GLYPH_CHAR(glyph) ((glyph) & 0xff)
 
 /* Return a glyph's face ID.  */
-#define GLYPH_FACE(glyph) (((glyph) >> 8) & 0xff)
+#define GLYPH_FACE(glyph) (((glyph) >> 8) & ((1 << 24) - 1))
 
 
 /* Data type checking */