more window port interface adjustments
further adjustments to the window port interface to pass a pointer to a glyph_info struct which describes not just the glyph number itself, but also the ttychar, the color, the glyphflags, and the symset index. This affects two existing window port calls that get passed glyphs and does the parameter consistently for both of them using the glyph_info struct pointer: print_glyph() add_menu(). The recently added glyphmod parameter is now unnecessary and has been removed.
This commit is contained in:
@@ -52,6 +52,19 @@ enum any_types {
|
||||
ANY_MASK32 /* 32-bit mask (stored as unsigned long) */
|
||||
};
|
||||
|
||||
/* glyph plus additional info */
|
||||
typedef struct gi {
|
||||
int glyph; /* the display entity */
|
||||
int color; /* color for window ports not using a tile */
|
||||
int ttychar; /* the character mapping for the original tty
|
||||
interace. Most or all window ports wanted
|
||||
and used this for various things so it is
|
||||
provided in 3.7+ */
|
||||
short int symidx; /* offset into syms array */
|
||||
unsigned glyphflags; /* more detail about the nature of the entity */
|
||||
} glyph_info;
|
||||
#define GLYPH_INFO_P struct gi
|
||||
|
||||
/* menu return list */
|
||||
typedef struct mi {
|
||||
anything item; /* identifier */
|
||||
|
||||
Reference in New Issue
Block a user