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:
Pasi Kallinen
2024-04-13 12:01:40 +03:00
parent ebd200ecc2
commit a57d0e6f4f
8 changed files with 48 additions and 11 deletions

View File

@@ -790,7 +790,7 @@ hup_cliparound(int x UNUSED, int y UNUSED)
#ifdef CHANGE_COLOR
/*ARGSUSED*/
staticfn void
hup_change_color(int color, long rgb, int reverse)
hup_change_color(int color UNUSED, long rgb UNUSED, int reverse UNUSED)
{
return;
}
@@ -798,7 +798,7 @@ hup_change_color(int color, long rgb, int reverse)
#ifdef MAC
/*ARGSUSED*/
staticfn short
hup_set_font_name(winid window, char *fontname)
hup_set_font_name(winid window UNUSED, char *fontname UNUSED)
{
return 0;
}