Combine three arguments of curses_putch into one
It will need another parameter for 256-colour support. To avoid having too many arguments, put glyph colour, background colour and attributes into a struct and, since to curses library all of that is attributes that are handled by same function, call the struct "gryph attributes". curses_putch was also declared in two different headers, remove one of those declarations.
This commit is contained in:
@@ -128,14 +128,6 @@ extern void curses_refresh_nethack_windows(void);
|
||||
extern void curses_del_nhwin(winid wid);
|
||||
extern void curses_del_wid(winid wid);
|
||||
extern void curs_destroy_all_wins(void);
|
||||
#ifdef ENHANCED_SYMBOLS
|
||||
extern void curses_putch(winid wid, int x, int y, int ch,
|
||||
struct unicode_representation *u, int color,
|
||||
int framecolor, int attrs);
|
||||
#else
|
||||
extern void curses_putch(winid wid, int x, int y, int ch, int color,
|
||||
int framecolor, int attrs);
|
||||
#endif
|
||||
extern void curses_get_window_size(winid wid, int *height, int *width);
|
||||
extern boolean curses_window_has_border(winid wid);
|
||||
extern boolean curses_window_exists(winid wid);
|
||||
|
||||
Reference in New Issue
Block a user