interface groundwork for core-side color decisions

(user-side decisions really, but as it stands right now
user-side decisions/options are made and processed by the core)

add a parameter to add_menu so color can be passed
This commit is contained in:
nhmall
2022-06-25 13:21:51 -04:00
parent b60dae1706
commit 2770223d10
44 changed files with 437 additions and 306 deletions
+2 -1
View File
@@ -2011,6 +2011,7 @@ X11_display_file(const char *str, boolean complain)
menu_item *menu_list;
#define LLEN 128
char line[LLEN];
int clr = 0;
/* Use the port-independent file opener to see if the file exists. */
fp = dlb_fopen(str, RDTMODE);
@@ -2027,7 +2028,7 @@ X11_display_file(const char *str, boolean complain)
any = cg.zeroany;
while (dlb_fgets(line, LLEN, fp)) {
X11_add_menu(newwin, &nul_glyphinfo, &any, 0, 0, ATR_NONE,
line, MENU_ITEMFLAGS_NONE);
clr, line, MENU_ITEMFLAGS_NONE);
}
(void) dlb_fclose(fp);
+1
View File
@@ -787,6 +787,7 @@ X11_add_menu(winid window,
char ch, /* selector letter; 0 if not selectable */
char gch, /* group accelerator (0 = no group) */
int attr,
int clr UNUSED,
const char *str,
unsigned itemflags)
{