curses: hilite_pet, hilite_pile without color
The curses interface was ignoring video attributes (bold, inverse, &c) when color is toggled off or if built with TEXTCOLOR disabled. Honor attributes regardless of whether color is displayed. Also, toggling 'hilite_pet' On during play wouldn't do anything if the curses-specific 'petattr' option had been left as None. (It worked as intended if set in starting options.)
This commit is contained in:
@@ -163,7 +163,7 @@ extern void curses_view_file(const char *filename, boolean must_exist);
|
||||
extern void curses_rtrim(char *str);
|
||||
extern int curses_get_count(int first_digit);
|
||||
extern int curses_convert_attr(int attr);
|
||||
extern int curses_read_attrs(char *attrs);
|
||||
extern int curses_read_attrs(const char *attrs);
|
||||
extern char *curses_fmt_attrs(char *);
|
||||
extern int curses_convert_keys(int key);
|
||||
extern int curses_get_mouse(int *mousex, int *mousey, int *mod);
|
||||
|
||||
Reference in New Issue
Block a user