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:
@@ -475,14 +475,14 @@ enum explosion_types {
|
||||
#define glyph_is_unexplored(glyph) ((glyph) == GLYPH_UNEXPLORED)
|
||||
#define glyph_is_nothing(glyph) ((glyph) == GLYPH_NOTHING)
|
||||
|
||||
/* flags for map_glyphmod */
|
||||
/* glyphflags for map_glyphinfo */
|
||||
|
||||
/* mgflags for altering map_glyphmod() internal behaviour */
|
||||
/* mgflags for altering map_glyphinfo() internal behaviour */
|
||||
#define MG_FLAG_NORMAL 0x00
|
||||
#define MG_FLAG_NOOVERRIDE 0x01
|
||||
#define MG_FLAG_RETURNIDX 0x02
|
||||
|
||||
/* Special mapped glyph flags encoded in glyphmod[GM_FLAGS] by map_glyphmod() */
|
||||
/* Special mapped glyphflags encoded by map_glyphinfo() */
|
||||
#define MG_CORPSE 0x0001
|
||||
#define MG_INVIS 0x0002
|
||||
#define MG_DETECT 0x0004
|
||||
|
||||
Reference in New Issue
Block a user