Curses: add support for the palette config option
Depends on CHANGE_COLOR compile-time option. Also allow multiple palette-definitions in the config file.
This commit is contained in:
@@ -327,6 +327,7 @@ extern boolean onlyhexdigits(const char *buf);
|
||||
extern uint32 get_nhcolor_from_256_index(int idx);
|
||||
#ifdef CHANGE_COLOR
|
||||
extern int count_alt_palette(void);
|
||||
extern int alternative_palette(char *);
|
||||
extern void change_palette(void);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -536,11 +536,11 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
||||
#ifdef CHANGE_COLOR
|
||||
#ifndef MAC /* not old Mac OS9 */
|
||||
NHOPTC(palette, Advanced, 15, opt_in, set_gameview,
|
||||
No, Yes, No, No, "hicolor",
|
||||
No, Yes, Yes, No, "hicolor",
|
||||
"palette (adjust an RGB color in palette (color/R-G-B)")
|
||||
#else
|
||||
NHOPTC(palette, Advanced, 15, opt_in, set_in_game,
|
||||
No, Yes, No, No, "hicolor",
|
||||
No, Yes, Yes, No, "hicolor",
|
||||
"palette (00c/880/-fff is blue/yellow/reverse white)")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user