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:
10
src/o_init.c
10
src/o_init.c
@@ -532,7 +532,7 @@ doclassdisco()
|
||||
if (!traditional) {
|
||||
any.a_int = 'u';
|
||||
add_menu(tmpwin, NO_GLYPH, &any, menulet++, 0, ATR_NONE,
|
||||
unique_items, MENU_UNSELECTED);
|
||||
unique_items, MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -543,7 +543,7 @@ doclassdisco()
|
||||
if (!traditional) {
|
||||
any.a_int = 'a';
|
||||
add_menu(tmpwin, NO_GLYPH, &any, menulet++, 0, ATR_NONE,
|
||||
artifact_items, MENU_UNSELECTED);
|
||||
artifact_items, MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -565,7 +565,7 @@ doclassdisco()
|
||||
any.a_int = c;
|
||||
add_menu(tmpwin, NO_GLYPH, &any, menulet++, c,
|
||||
ATR_NONE, oclass_to_name(oclass, buf),
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -707,12 +707,12 @@ rename_disco()
|
||||
any.a_int = 0;
|
||||
add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings,
|
||||
let_to_name(oclass, FALSE, FALSE),
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
prev_class = oclass;
|
||||
}
|
||||
any.a_int = dis;
|
||||
add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE,
|
||||
obj_typename(dis), MENU_UNSELECTED);
|
||||
obj_typename(dis), MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
}
|
||||
if (ct == 0) {
|
||||
|
||||
Reference in New Issue
Block a user