switch curses port to use the new tty_print_glyph argument
This commit is contained in:
@@ -667,8 +667,13 @@ curses_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph,
|
||||
unsigned int special;
|
||||
int attr = -1;
|
||||
|
||||
#if 0
|
||||
/* map glyph to character and color */
|
||||
mapglyph(glyph, &ch, &color, &special, x, y, 0);
|
||||
mapglyph(glyph, &ch, &color, &special, x, y, 0); */
|
||||
#endif
|
||||
special = glyphmod[GM_FLAGS];
|
||||
ch = (int) glyphmod[GM_TTYCHAR];
|
||||
color = (int) glyphmod[GM_COLOR];
|
||||
if ((special & MG_PET) && iflags.hilite_pet) {
|
||||
attr = iflags.wc2_petattr;
|
||||
}
|
||||
@@ -693,7 +698,7 @@ curses_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph,
|
||||
/* water and lava look the same except for color; when color is off,
|
||||
render lava in inverse video so that they look different */
|
||||
if ((special & (MG_BW_LAVA | MG_BW_ICE)) != 0 && iflags.use_inverse) {
|
||||
attr = A_REVERSE; /* mapglyph() only sets this if color is off */
|
||||
attr = A_REVERSE; /* map_glyphmod() only sets this if color is off */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user