groundwork for window port interface change to add_menu
groundwork only - window port interface change This changes the last parameter for add_menu() from a boolean to an unsigned int, to allow additional itemflags in future beyond just the "preselected" that the original boolean offered. There shouldn't be any functionality changes with this groundwork-only change, and if there are it is unintentional and should be reported.
This commit is contained in:
@@ -1978,7 +1978,7 @@ boolean unreachable;
|
||||
any.a_int = lchoices->idx + 1;
|
||||
}
|
||||
add_menu(win, NO_GLYPH, &any, lchoices->menuletter, 0, ATR_NONE, entry,
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
/* this assumes there are at most 52 interesting levels */
|
||||
if (lchoices->menuletter == 'z')
|
||||
lchoices->menuletter = 'A';
|
||||
@@ -2090,7 +2090,7 @@ xchar *rdgn;
|
||||
if (bymenu) {
|
||||
any = cg.zeroany;
|
||||
add_menu(win, NO_GLYPH, &any, 0, 0, iflags.menu_headings, buf,
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
} else
|
||||
putstr(win, 0, buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user