Use single define for max message history
... instead of having every windowport define their own variant. Affects tty, curses, X11, and Windows GUI.
This commit is contained in:
@@ -441,6 +441,10 @@ extern struct nomakedefs_s nomakedefs;
|
||||
#define MAXMONNO 120 /* extinct monst after this number created */
|
||||
#define MHPMAX 500 /* maximum monster hp */
|
||||
|
||||
#ifndef MAX_MSG_HISTORY
|
||||
#define MAX_MSG_HISTORY 128 /* max # of lines in msg_history */
|
||||
#endif
|
||||
|
||||
typedef struct color_and_attr {
|
||||
int color, attr;
|
||||
} color_attr;
|
||||
|
||||
@@ -267,7 +267,6 @@ struct xwindow {
|
||||
/* event into a character(s) */
|
||||
|
||||
#define DEFAULT_LINES_DISPLAYED 12 /* # of lines displayed message window */
|
||||
#define MAX_HISTORY 60 /* max history saved on message window */
|
||||
|
||||
/* flags for X11_yn_function_core() */
|
||||
#define YN_NORMAL 0U /* no flags */
|
||||
|
||||
@@ -33,7 +33,6 @@ extern WINDOW *activemenu; /* curses window for menu requesting a
|
||||
#define MAP_WIN 3
|
||||
#define INV_WIN 4
|
||||
#define NHWIN_MAX 5
|
||||
#define MESG_HISTORY_MAX 200
|
||||
#if !defined(__APPLE__) || !defined(NCURSES_VERSION)
|
||||
# define USE_DARKGRAY /* Allow "bright" black; delete if not visible */
|
||||
#endif /* !__APPLE__ && !PDCURSES */
|
||||
|
||||
Reference in New Issue
Block a user